android - Get longitude and latitude by touch event -
How can I get location latitude and latitude by touch events on the marker? I want that when users click somewhere on the map, its latitude and longitude please help me. Thanks
Just override the method of class. Click the field LatLng point will be, then:
map.setOnMapClickListener (new OnMapClickListener () {@Override public void onMapClick (LatLng point) {/ / TODO auto generated method strub double latitude = dot.liteitude; double lng = point.langey;}});
Comments
Post a Comment