self.sketchLayer = [AGSSketchGraphicsLayer graphicsLayer];
AGSSpatialReference *sccc = [AGSSpatialReference spatialReferenceWithWKID:4490];
self.sketchLayer.geometry = [[AGSMutablePolyline alloc] initWithSpatialReference:sccc];
[self.KMMapView addMapLayer:self.sketchLayer withName:@"Sketch layer"];
self.KMMapView.touchDelegate = self.sketchLayer;
self.sketchLayer.geometry = [[AGSMutablePolyline alloc] initWithSpatialReference:self.KMMapView.spatialReference];
self.sketchLayer.selectedVertexSymbol.color = [UIColor colorWithRed:78.0/255.f green:158.0/255.f blue:237.0/255.f alpha:1.0];
AGSTextSymbol *ts = [[AGSTextSymbol alloc] initWithText:[NSString stringWithFormat:@"%f",self.distance] color:[UIColor blueColor]];
ts.backgroundColor = [UIColor whiteColor];
ts.vAlignment = AGSTextSymbolVAlignmentMiddle;
ts.hAlignment = AGSTextSymbolHAlignmentCenter;
ts.fontSize = 14;
self.sketchLayer.midVertexSymbol = ts;
ArcGIS草图绘制与符号设置

本文介绍如何使用ArcGIS SDK for iOS进行草图绘制,并设置了特定的顶点符号和文字标记,以实现地图上的路径显示及距离信息的直观展示。
1605

被折叠的 条评论
为什么被折叠?



