tigrot Well-Known Member Licensed User Longtime User Sep 13, 2017 #1 Hi everybody, I'm using V2 Maps library to show a map. I put a marker and I'd like to center the map on this marker. How can this be done? I'm searching a way to fix initial zoom for the map as well... Thank you for help! Regards Mauro Last edited: Sep 13, 2017
Hi everybody, I'm using V2 Maps library to show a map. I put a marker and I'd like to center the map on this marker. How can this be done? I'm searching a way to fix initial zoom for the map as well... Thank you for help! Regards Mauro
eurojam Well-Known Member Licensed User Longtime User Sep 13, 2017 #2 use cameraposition like this: B4X: Dim cp As CameraPosition cp.Initialize(49,49,10) gmap.MoveCamera(cp) use the same coordinates like your marker, then the map centers on it. you can also set the initial zoomlevel with cameraposition... Upvote 0
use cameraposition like this: B4X: Dim cp As CameraPosition cp.Initialize(49,49,10) gmap.MoveCamera(cp) use the same coordinates like your marker, then the map centers on it. you can also set the initial zoomlevel with cameraposition...
tigrot Well-Known Member Licensed User Longtime User Sep 13, 2017 #3 Got it. The answer is at https://www.b4x.com/android/forum/threads/center-marker.65171/ https://www.b4x.com/android/forum/threads/center-marker.65171/ Thanks to EuroJam Mauro Upvote 0
Got it. The answer is at https://www.b4x.com/android/forum/threads/center-marker.65171/ https://www.b4x.com/android/forum/threads/center-marker.65171/ Thanks to EuroJam Mauro
tigrot Well-Known Member Licensed User Longtime User Sep 13, 2017 #4 Thank you EuroJam! Got it a second before your answer! Upvote 0