SGSketchLayer_OC

SGSketchLayer for Object-C.


License
MIT
Install
pod try SGSketchLayer_OC

Documentation

SGSketchLayer-OC

CI Status Version License Platform

Describe

A layer that allows the user to interactively sketch geometries on the map .You can sketch point(点) ,FoldLine(折线),Curve(曲线),Surfaces(曲面),Polygon(多边形) geometries from scratch.

Usage

import<SGSketchLayer_OC/SGSketchLayer_OC.h>


/**
*  @author crash         crash_wu@163.com   , 16-08-10 16:08:51
*
*  @brief  初始化绘图工具
*
*  @param sketchType 绘制图形类型
*
*  @return 绘图工具
*/
-(_Nullable instancetype)initWithSketchType:(SketchType )sketchType;

/**
*  @author crash         crash_wu@163.com   , 16-08-10 16:08:11
*
*  @brief  清除图层
*/
-(void)clear;

/**
*  @author crash         crash_wu@163.com   , 16-08-10 16:08:06
*
*  @brief  获取标绘图形
*
*  @return 获取标绘图形
*/
-( AGSGeometry* _Nullable )geometry;

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

ArcGIS-Runtime-SDK-iOS for version 10.2.5

Installation

SGSketchLayer-OC is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SGSketchLayer_OC"

Author

吴小星, crash_wu@163.com

License

SGSketchLayer-OC is available under the MIT license. See the LICENSE file for more info.

Exmaple

(绘制点)

(绘制折线)

(绘制曲线)

(绘制曲面,多边形)