madru Active Member Licensed User Longtime User Feb 4, 2019 #1 Hi, after I got the SDK finally running I like to ask the question how to get a map cantered and scaled around a location e.g. I add a circle around a (my) position with a radius of 1000 meter B4X: gextra.AddCircle( 12, 34,1000,Colors.ARGB(50,255,255,0)) what do I have to do to get the position 12,34 centered and the drawn circle is fully visible ? THX
Hi, after I got the SDK finally running I like to ask the question how to get a map cantered and scaled around a location e.g. I add a circle around a (my) position with a radius of 1000 meter B4X: gextra.AddCircle( 12, 34,1000,Colors.ARGB(50,255,255,0)) what do I have to do to get the position 12,34 centered and the drawn circle is fully visible ? THX
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2019 #2 Center the map: B4X: Dim c As CameraPosition c.Initialize(12, 34 , gmap.CameraPosition.Zoom) gmap.AnimateCamera(c) You can find the zoom level that is suitable for you. If you want to accurately control it then use GoogleMapsExtra.ZoomToPoints. You will need to find two corner points in the bounding rectangle. Upvote 0
Center the map: B4X: Dim c As CameraPosition c.Initialize(12, 34 , gmap.CameraPosition.Zoom) gmap.AnimateCamera(c) You can find the zoom level that is suitable for you. If you want to accurately control it then use GoogleMapsExtra.ZoomToPoints. You will need to find two corner points in the bounding rectangle.