Select to view content in your preferred language

Got X and Y co-ordinates, how to show point on the map

985
2
01-10-2013 05:23 PM
RiaPillia
New Contributor
Hello All,

I am using the ArcGis for the first time in my android application(java). I have got the X and Y co-ordinates of a location by "one map", now I want t display this point as a red dot in Map.


X-26005.0765
Y-30007.0973
How would I achieve this. Any tutorial to follow. I saw the "Hello Map Tutorial".

Can Anyone direct me to the tutorial or documentation with example.

Asmita
0 Kudos
2 Replies
RafaelLuo
Emerging Contributor
you need to add a GraphicsLayer to your mapview,the call the draw point function like this:

GraphicsLayer drawLayer = new GraphicsLayer();
mapview.addLayer(drawLayer);



draw point function
public void DrawTarget(Point loc)
{
 drawLayer.removeAll();
 Graphic locationGraphic = new Graphic(loc,new SimpleMarkerSymbol(Color.RED,10,STYLE.CIRCLE));
 drawLayer.addGraphic(locationGraphic);
}
0 Kudos
SamerIskandar
New Contributor
Hello,
Please i was facing the same problem but i was able to make to point appear on the map, but my map is my own web map that I published on arcgis online. The Problem now is that i cant make the point appear on my arcgis online.
Any solutions ?
thanks,
Sam.
0 Kudos