I Open a shapefile and i have given the option for Jump to a
particular lat/long position by entering the lat/long values. i am able to
zoom to that particular location and now my problem is that i want to show a
point on that zoom area at that Lat/Long position so that it can show that
exact lat/long position in that particular ZOOM area. Can anyone please
suggest about how to add a point on the map on a location????????
View this message in context: http://osgeo-org.1560.n6.nabble.com/Adding-a-point-on-selected-lat-lon-position-tp5024286.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
From: Michael Bedward <michael.bedward@gm...> - 2012-12-22 11:06:40
On 21 December 2012 21:15, Boided <richab23@...> wrote:
> Can anyone please
> suggest about how to add a point on the map on a location????????
One question mark is usually enough. More doesn't get you better answers :)
You could use a DirectLayer to display your point:
Sub-class DirectLayer and implement the draw method to display the
point by drawing into the Graphics2D object passed to the method. If
your application repeatedly moves from point to point you could keep
the same DirectLayer in your MapContent and use a setter method or
public field to update the point coords.