H Hirogens Active Member Licensed User Longtime User Aug 13, 2018 #1 Hello, I open a new thread for this question about gmap. I would like to zoom automaticaly on my position because actualy I see the world-map and I need to press the button to zoom
Hello, I open a new thread for this question about gmap. I would like to zoom automaticaly on my position because actualy I see the world-map and I need to press the button to zoom
Erel B4X founder Staff member Licensed User Longtime User Aug 14, 2018 #2 Code: Copy Dim cp As CameraPosition = gmap.CameraPosition Dim NewCP As CameraPosition NewCP.Initialize(cp.Target.Latitude, cp.Target.Longitude, cp.Zoom + 1) gmap.AnimateCamera(NewCP) Upvote 0
Code: Copy Dim cp As CameraPosition = gmap.CameraPosition Dim NewCP As CameraPosition NewCP.Initialize(cp.Target.Latitude, cp.Target.Longitude, cp.Zoom + 1) gmap.AnimateCamera(NewCP)
H Hirogens Active Member Licensed User Longtime User Aug 14, 2018 #3 Thanks, but when I do this the camera don't go where I am :/. I found the solution by taking my 1st lat/long values. Can I zoom automaticaly or I need to set a personal value ? Actually with +16 in Zoom I have something good but I prefer use a special formule Upvote 0
Thanks, but when I do this the camera don't go where I am :/. I found the solution by taking my 1st lat/long values. Can I zoom automaticaly or I need to set a personal value ? Actually with +16 in Zoom I have something good but I prefer use a special formule
Erel B4X founder Staff member Licensed User Longtime User Aug 15, 2018 #4 Use GoogleMapsExtra and zoom to a given bounds: https://www.b4x.com/android/forum/threads/googlemapsextras.26277/ Upvote 0
Use GoogleMapsExtra and zoom to a given bounds: https://www.b4x.com/android/forum/threads/googlemapsextras.26277/