Set the blue location dot in a map without using the location service

2171
2
Jump to solution
02-28-2012 12:10 PM
GuillermoUrquizo
New Contributor
There is a way, given stored Latitude and Longitude data (converting the points is not a problem), to set the blue location dot on a map without using the Location Service?
0 Kudos
1 Solution

Accepted Solutions
AndyGup
Esri Regular Contributor
@gurquizo I'm not exactly sure what you are asking, but to draw a blue point on the map you'd use a pattern similar to this:

Graphic graphic = new Graphic(mapView.toMapPoint(new Point(e.getX(), e.getY())),new SimpleMarkerSymbol(Color.BLUE,25,STYLE.CIRCLE)); graphicsLayer.addGraphic(graphic);


-Andy

View solution in original post

0 Kudos
2 Replies
AndyGup
Esri Regular Contributor
@gurquizo I'm not exactly sure what you are asking, but to draw a blue point on the map you'd use a pattern similar to this:

Graphic graphic = new Graphic(mapView.toMapPoint(new Point(e.getX(), e.getY())),new SimpleMarkerSymbol(Color.BLUE,25,STYLE.CIRCLE)); graphicsLayer.addGraphic(graphic);


-Andy
0 Kudos
GuillermoUrquizo
New Contributor
Thank you Andy, I just find out that solution yesterday.

Thank you very much! 🙂
0 Kudos