基于ArcGis加载天地图瓦片的定位功能
//=======================================//
// MARK: 单例模式 //
//=======================================//
public static let sharedInstance = SGLocationUtil()
/**
获取用户当前位置信息,并且展示到地图上
:param: mapView 当前地图
:param: symbolImage 显示图标名称
*/
public func getUserLocation (mapView:AGSMapView,symbolImage:String)
/**
获取当前用户用户位置坐标
:returns: 用户位置坐标
*/
public func getUserPoint()->AGSPoint
To run the example project, clone the repo, and run pod install
from the Example directory first.
ArcGIS-Runtime-SDK-iOS for version 10.2.5
SGLocationUtil is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SGLocationUtil"
吴小星, crash_wu@163.com
SGLocationUtil is available under the MIT license. See the LICENSE file for more info.