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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -