基于 ArcGis 加载 TileMap 的定位功能
@import SGLocationObjC;//到项目中
/**
* @author crash [email protected] , 16-09-05 16:09:02
*
* @brief 单例
*
* @return 定位服务对象
*/
+(nonnull instancetype)sharedInstance;
/**
* @author crash [email protected] , 16-09-05 16:09:31
*
* @brief 获取用户当前位置信息,并且展示到地图上
*
* @param mapView 地图
* @param imageName 图标名称
*/
-(void)getUserLocation:(nonnull AGSMapView *)mapView andSymbolImage:(nonnull NSString *)imageName;
/**
* @author crash [email protected] , 16-09-05 16:09:29
*
* @brief 获取当前用户用户位置坐标
*
* @return 用户位置坐标
*/
-(nullable AGSPoint *)getUserPoint;
要运行示例项目,请克隆仓库,并首先从 Example 目录运行 pod install
。
ArcGIS-Runtime-SDK-iOS for version 10.2.5
SGLocationObjC 可以通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中
pod "SGLocationObjC"
吴小星, [email protected]
SGLocationObjC 在 MIT 许可证下提供。有关更多信息,请参阅许可证文件。