I get the coordinate of the map when user click on the map.Now i want to save this and to pass the coordinates to other class.If anyone know the answer please guide.
Thanks
public class Corndinates extends MapClickListener{
/**
* Creates a mouse listener for the jxmapviewer which returns the
* GeoPosition of the the point where the mouse was clicked.
*
* @param viewer the jxmapviewer
*/
public Corndinates(JXMapViewer viewer) {
super(viewer);
}
@Override
public void mapClicked(GeoPosition location) {
GeoPosition cord = location;
System.out.println(cord);
}
}
Aucun commentaire:
Enregistrer un commentaire