Latest 0.0.3
Homepage https://github.com/crash-wu/SGSketchTool
License MIT
Platforms ios 8.0, requires ARC
Frameworks AssetsLibrary, CoreGraphics, CoreLocation, CoreText, OpenGLES
Authors

SGSketchToolLayer

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

/**
初始化函数

:param: sketchType 绘图类型

:returns: 绘图工具类对象
*/
init(sketchType: SketchType)

/**
清除图层
*/
func clear()

/**
获取标绘图形

:returns:获取标绘图形
*/
func geometry()->AGSGeometry?

Install

pod 'SGSketchLayer'

Example

(绘制点)

(绘制折线)

(绘制曲线)

(绘制曲面,多边形)

Latest podspec

{
    "name": "SGSketchLayer",
    "version": "0.0.3",
    "summary": "SGSketchLayer.",
    "description": "A layer that allows the user to interactively sketch geometries on the map .You can sketch point(u70b9) ,FoldLine(u6298u7ebf),Curve(u66f2u7ebf),Surfaces(u66f2u9762),Polygon(u591au8fb9u5f62) geometries from scratch.",
    "homepage": "https://github.com/crash-wu/SGSketchTool",
    "license": "MIT",
    "authors": {
        "u5434u5c0fu661f": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/crash-wu/SGSketchTool.git",
        "tag": "0.0.3"
    },
    "source_files": "SGSketchTool/SketchTool/*.swift",
    "frameworks": [
        "AssetsLibrary",
        "CoreGraphics",
        "CoreLocation",
        "CoreText",
        "OpenGLES"
    ],
    "requires_arc": true,
    "xcconfig": {
        "FRAMEWORK_SEARCH_PATHS": "$(HOME)/Library/SDKs/ArcGIS/iOS",
        "OTHER_LDFLAGS": "-lObjC -framework ArcGIS -l c++",
        "ENABLE_BITCODE": "NO",
        "CLANG_ENABLE_MODULES": "YES"
    }
}

Pin It on Pinterest

Share This