- (void) addPointToMapFrom:(AGSPoint *) pp to:(AGSPoint *) cp; { //Create Simple for Polyline AGSSimpleLineSymbol *lineSymbol = [AGSSimpleLineSymbol simpleLineSymbol]; lineSymbol.width = 3.0; lineSymbol.color = self.roleColor; //Create Polyline Geometry AGSMutablePolyline *polyline = [[AGSMutablePolyline alloc] initWithSpatialReference:self.mapView.spatialReference]; [polyline addPathToPolyline]; [polyline addPointToPath:pp]; [polyline addPointToPath:cp]; //Add to graphics layer AGSGraphic *graphic = [AGSGraphic graphicWithGeometry:polyline symbol:lineSymbol attributes:nil infoTemplateDelegate:nil]; [self.graphicsLayer addGraphic:graphic]; }
...Unfortunately this is extremely slow and there is noticeable lag as the user draws on the screen. Will I need to use a UIView to accomplish this?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.