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

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -