I have made a sample Android application that displays a Google map using phonegap. I want to get the location of the place that was touched on the map. Is there any method for that?
Asked
Active
Viewed 115 times
1 Answers
0
Its solution for Android MapView, but I'm sure that you have similar method in PhoneGap.
I think you need to extend Overlay class and override OnTap method.
@Override
public boolean onTap(GeoPoint p,MapView mapView){
Log.d("TOUCHED_PLACE", "Latitutde:"+p.getLatitudeE6()/1E6 + " Longitude:"+p.getLongitude()/1E6);
}
:)

Peter Moskala
- 360
- 1
- 9