- (void)didOpenWebMap: (AGSWebMap*)webMap intoMapView: (AGSMapView *)mapView { if(self.sketchLayer ==nil) { self.sketchLayer = [AGSSketchGraphicsLayer graphicsLayer]; self.sketchLayer.geometry = [[AGSMutablePolyline alloc] initWithSpatialReference:self.mapView.spatialReference]; [self.mapView addMapLayer:self.sketchLayer withName:@Sketch layer]; self.sketchLayer.visible=NO; } if(self.graphicsLayer ==nil) { self.graphicsLayer = [AGSGraphicsLayer graphicsLayer]; [self.mapView addMapLayer:self.graphicsLayer withName:@Graphics Layer]; } if(self.graphicsLayerdraw == nil) { self.graphicsLayerdraw = [AGSGraphicsLayer graphicsLayer]; [self.mapView addMapLayer:self.graphicsLayerdraw withName:@Graphics Layer Draw]; } }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.