vadim_05

Display pin on location by Lat,Lon coordinates dynamically

Discussion created by vadim_05 on Oct 9, 2012
Latest reply on Oct 15, 2012 by njarecha-esristaff
I want to display an pin image, to display it with my current gps coordinates its eady...just use start.
How can i set this pin to a specific coordinates of Lat,Lon...

I tried the next thing but its doest show nothing

AGSPictureMarkerSymbol *myMarkerSymbol = [AGSPictureMarkerSymbol pictureMarkerSymbolWithImageNamed:@"Pushpin.png"];
        myMarkerSymbol.color = [UIColor redColor];

[AGSPoint pointWithX:32.0636
                       y:34.7922
  spatialReference:[AGSSpatialReference spatialReferenceWithWKID:43276]];

  AGSGraphic* myGraphic =
 [AGSGraphic graphicWithGeometry:myMarkerPoint
                             symbol:myMarkerSymbol
                         attributes:nil
               infoTemplateDelegate:nil];
    
    [myGraphic addGraphic:myGraphic];
   [self.myGraphicsLayer dataChanged];

   [self.mapView addMapLayer:self.myGraphicsLayer withName:@"test];



Any ideas?

Outcomes