Problem with Points

1357
0
07-01-2014 11:00 PM
Mohammad_NaserSobhan_Noorzai
New Contributor
hi guys i am trying to add a point on the map but it's not working. and i got no errors as well,

[PHP] public SimpleMarkerSymbol PointMarker()
  {
    return new SimpleMarkerSymbol(Color.GREEN, 35, SimpleMarkerSymbol.STYLE.DIAMOND);
  }[/PHP]

this is the point symbol

and below my main function

[PHP]public void addthepoint()
   {
  
   map = ((MapView)findViewById(R.id.map));
   this.pointLayer.removeAll();
   this.pointLayer = new GraphicsLayer();
      this.map.addLayer(this.pointLayer);
     
   //   HashMap localHashMap = new HashMap();
        // localHashMap.put("name", "ENja");
   double lat = Double.parseDouble("**.8854587");
         double lon = Double.parseDouble("**.2812024");
         mapPnt = new Point(lon, lat);
         Graphic graphic = new Graphic(mapPnt, PointMarker());
         pointLayer.addGraphic(graphic);
   }[/PHP]
0 Kudos
0 Replies