Android Question Get mapfragment Long/Lat using button

Chris Guanzon

Active Member
Licensed User
Longtime User
Good day, everyone!

How can I get the longitude and latitude of mapfragment using the button? I have an image over the mapfragment. I want to get the position of this image to get the long/lat in the mapfragment by pressing the button.
 

Attachments

  • testtet.jpg
    testtet.jpg
    40.1 KB · Views: 190

TILogistic

Expert
Licensed User
Longtime User
get map points
Private Sub MapFragment1_Click (Point As LatLng)
get marker points
Private Sub MapFragment1_MarkerClick(SelectedMarker As Marker) As Boolean
and if you know the marker
Log($"Marker: ${MarkerMyLocationImage.Position.Latitude},${MarkerMyLocationImage.Position.Longitude}"$)
 
Last edited:
Upvote 0