AGSPictureMarkerSymbol *pt=[AGSPictureMarkerSymbol pictureMarkerSymbolWithImageNamed:@ArcGIS.bundle/GpsDisplay.png]; double lon = [[self.lonTextField text] doubleValue]; double lat = [[self.latTextField text] doubleValue]; AGSPoint * newpoint2 = [AGSPoint pointWithX:lon y:lat spatialReference:[AGSSpatialReference spatialReferenceWithWKID:4326 WKT:nil]]; NSMutableDictionary *dic2 = [[NSMutableDictionary alloc] init]; [dic2 setObject:self.typeTextField.text forKey:@req_type]; [dic2 setObject:self.dateTextField.text forKey:@req_date]; [dic2 setObject:self.timeTextField.text forKey:@req_time]; [dic2 setObject:self.desTextView.text forKey:@des]; [dic2 setObject:self.titleTextView.text forKey:@title]; [dic2 setObject:self.lonTextField.text forKey:@x_coord]; [dic2 setObject:self.latTextField.text forKey:@y_coord]; AGSGraphic * graphic=[[AGSGraphic alloc]initWithGeometry:newpoint2 symbol:pt attributes:dic2 infoTemplateDelegate:nil]; graphic.attributes = dic2; //update the service [ev.activeFeatureLayer addFeatures:[NSArray arrayWithObject:graphic]];
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.