B4A Question Google Maps Ideal zoom - TILogistic (first post)    Feb 28, 2026   (1 reaction) Look at this example and it will give you an idea of how to do it. Luberary: GoogleMapsExtras LatLngBoundsBuilder https://www.b4x.com/android/forum/threads/google-maps-zoomimg.78349/#post-496607 https://www.b4x.com/android/forum/threads/googlemapsextra-problem-solved.117447/#post-734769 Google automatically calculates: Center Ideal zoom Perfect screen fit Search: https://www.b4x.com/android/forum/pages/results/?query=LatLngBoundsBuilder... B4i Question GoogleMap Extras help (SOLVED) - walterf25    Dec 10, 2018 LatLngBoundsBuilder1 As LatLngBoundsBuilder
LatLngBoundsBuilder1.Initialize
markers.Initialize...
''adding markers to the LatLngBoundsBuilder
LatLngBoundsBuilder1.Include(m1... As LatLngBounds=LatLngBoundsBuilder1.Build
Dim camupdate As CameraUpdate
Dim camfactory... B4A Question GoogleMapsExtra Problem [Solved] - RichardN    May 7, 2020 like this:
Dim LLboundsBuilder1 As LatLngBoundsBuilder
LLboundsBuilder1.Initialize
Dim ThisLL...)
LLboundsBuilder1.Include(ThisLL)
Loop
Dim Bounds As LatLngBounds... CamUpdate As CameraUpdate
CamUpdate = CameraUpdateFactory1.NewLatLngBounds(Bounds,10 )
gmx....common.apiexception.c: Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most... Wish MoveToBounds === GoogleMapsExtras - Roger Daley    May 29, 2015 As an addittion to AnimateToBounds it would be handy to have a MoveToBounds event, or possibly a time control added to AnimateToBounds. IE: Dim MarkerBounds As LatLngBounds=LatLngBoundsBuilder1.Build GoogleMapsExtras1.AnimateToBounds(gmap, MarkerBounds, padding, time As Float) Regards Roger... B4A Question Google Maps Zoomimg - rboeck (first post)    Apr 11, 2017   (2 reactions) Dim LatLngBoundsBuilder1 As LatLngBoundsBuilder
LatLngBoundsBuilder1.Initialize
'here... Dim Point As LatLng
Point.Initialize(37.772323, -122.214897)
LatLngBoundsBuilder1.Include(Point)
'end loop
Dim llBounds As LatLngBounds
llBounds = LatLngBoundsBuilder1.Build
GoogleMapsExtras1.AnimateToBounds2(GoogleMap1,llBounds,1920,1000,190)... B4A Question GMaps zoom - warwound (first post)    Apr 22, 2015   (1 reaction) How to clear all the markers position added to LatLngBoundsBuilder1 ?
You can't.
Instead you need to create a new LatLngBoundsBuilder object or re Dim the existing LatLngBoundsBuilder object.... B4A Question Search for points of interest within a map section - DonManfred (first post)    Dec 9, 2019 containing the boundaries to which the area of my interest is enclosed So basically you can build a "Bounds" Object for the Area of Interest, right? Maybe this is of interest: https://stackoverflow.com/questions/48077546/find-if-given-lat-lng-co-ordinates-lies-inside-a-square-rectangle EditToAdd: Check latlngboundsbuilder from googlemapsextras to build a latlonbounds.... B4J Library jGoogleMaps library - rboeck (first post)    Nov 15, 2016 In GoogleMapsExtras exists a class called LatLngBoundsBuilder, which is used to calculate the optimal size from a list of markers; then you can use AnimatetoBounds to show the optimal zoomfactor.... B4A Question Map Track - tariqyounis    Feb 21, 2018 Hi; I have 4 points in googlemaps and I would like to draw a track connecting the points from point 1 to point 4. I have used LatLngBoundsBuilder library but it gave me error that GoogleMapsExtras1.AnimateToBounds(gmap, MarkerBounds, 128) is not initialized. Any help is highly appreciated...... B4A Question Draw line in googlemap not shhowing - warayTek    May 6, 2024 As LatLngBoundsBuilder LLB.Initialize LLB.Include(Pt1) LLB.Include(Pt2) Dim LatLngBounds1 As LatLngBounds = LLB.Build GoogleMapsExtras1.AnimateToBounds2 (gmap, LatLngBounds1 , Activity...Hi, I need to draw a line between 2 points. I found a snippet but does not work for me. Sub LineTest Dim PointList As List PointList.Initialize gmap.Clear Dim Pt1 As LatLng Pt1.Initialize(11.2438762,125.0079656) Dim Pt2 As LatLng Pt2.Initialize(11.243402, 125... Page: 1   2   3   4   5   6   7   |