fitbounds Questions
24
Solved
I have a set of points I want to plot on an embedded Google Map (API v3). I'd like the bounds to accommodate all points unless the zoom level is too low (i.e., zoomed out too much). My approach has...
Cordovan asked 13/3, 2010 at 7:49
3
I cannot figure out how to call fitBounds() on the Leaflet map.
If I was just using vanilla leaflet, this solution would work perfectly: Zoom to fit all markers in Mapbox or Leaflet
Unfortunately...
Nebulosity asked 14/6, 2018 at 16:23
4
I have a problem with googlemaps fitBounds functions.
for (var i = 0; i < countries.length; i++) {
var country = countries[i];
var latlng = new google.maps.LatLng(parseFloat(country.lat), par...
Siliqua asked 4/8, 2010 at 16:39
4
I am trying to show all of my markers into the viewport using my flutter google maps. But it seems not working in my case. I have tried so far as below:
_controller.animateCamera(CameraUpdate.new...
9
Solved
I'm drawing a series of markers on a map (using v3 of the maps api).
In v2, I had the following code:
bounds = new GLatLngBounds();
... loop thru and put markers on map ...
bounds.extend(poin...
Thurstan asked 7/6, 2010 at 13:22
12
I've created a quite complex store locator of sorts. The user enters their zip and a table returns results with corresponding markers on a map. They can page through results and the markers move fu...
Tempietempla asked 15/7, 2010 at 1:10
5
Solved
I have a bunch or markers, and I want to show only the area containing them. I found a long list of similar questions (see at the bottom of the post for some), but none of the solutions works for m...
Cheju asked 19/6, 2012 at 10:1
7
Solved
I've run into a problem where calling map.fitBounds seems to zoom out. I'm trying to use the backbone.js router to save the map bounds in the url. I want to be able to bookmark the url and later ha...
Boyla asked 17/11, 2011 at 15:44
17
Is there a way to set a max zoom level for fitBounds()?
My problem is that when the map is only fed one location, it zooms in as far as it can go, which really takes the map out of context and rend...
Guimar asked 26/7, 2010 at 12:23
2
Solved
I know there is a bounds_changed event that is triggered if the bounds have changed, however I need to know when fitBounds has completed (when bounds have changed or bounds have stayed the same).
...
Aalst asked 3/3, 2016 at 1:23
2
Solved
I'm using Leaflet with Mapbox and I'd like to set the view of the map so :
all markers are visible
the center is set to a specific point
It's easy to do each points separately with setView and ...
3
I'm trying to set the bounds of a map
fitbounds doesnt work because it puts some space around the bounds therefore doing
{{{map.fitBounds(map.getBounds())}}}
a few times will quickly zoom the ...
Kimberelykimberlee asked 18/3, 2010 at 8:40
1
We want something like this leaflet fitBounds in our google maps application. We saw a few examples but it doesn't worked as expected. We tried to make the div as a google maps controller, ex...
Adnah asked 27/1, 2015 at 15:27
2
Solved
I've just begun using the Google Maps API (v3.0) and have had a good deal of success so far. I am loading a set of objects with Latitude & Longitude values from a database, passing them into my...
Grovel asked 6/10, 2010 at 13:54
1
Solved
I have a array of markers named markersand i add those markers in map using LeafletJs
L.layerGroup(markers).addTo(map);
Now i want to focus on a viewport that covers all markers
var bounds = L...
1
Solved
I have a map which contains multiple markers with infowindows. The infowindows need to be open on page load. The map is being centered using setbounds to incorporate all of the markers, which works...
Mackintosh asked 8/1, 2014 at 17:4
4
Solved
I'm calling getBounds() directly after a call to fitBounds(), and I thought I'd get a valid bound back as the map recenters and zooms to fit the bounds. Unfortunately, getBounds() is returning nil....
Dragone asked 17/8, 2010 at 19:10
1
Solved
I'm trying to use the fitBounds method to fit all my markers in the google maps camera view. So I have my markers stored in markersArray and I use the following code to init GMSCoordinateBounds wit...
Catsup asked 12/6, 2013 at 16:39
2
Solved
I am trying to render directions for 48 waypoints, but google only allows 8 waypoints to be rendered per request. so I do multiple requests (in my case 6). However, the API somehow doed fitBounds()...
Placet asked 24/1, 2013 at 1:5
1
Solved
My Google maps API map zooms put to show all the markers added after a google places search. On a mobile map this can take a bit to load and as this app for cyclists I prefer to only show the resul...
Ophthalmologist asked 1/12, 2012 at 1:54
2
Solved
I'm using the geocoder from Google API v3 to display a map of a country. I get the recommended viewport for the country but when I want to fit the map to this viewport, it does not work (see the bo...
Sha asked 22/3, 2010 at 18:28
2
Solved
Goal: I want to have a custom search (geocode) function and be able to list and click
each result and display it on the map.
Wanted: Adjust map bounds / zoom level accordingly, i.e. searching for ...
Surgery asked 28/2, 2012 at 22:57
1
© 2022 - 2024 — McMap. All rights reserved.