You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
// Zoom it fit markers
$(this).bind('gMap.zoomToFitMarkers', function () {
if (overlays && overlays.length > 0) {
var bounds = new google.maps.LatLngBounds();
for (var i = 0; i < overlays.length; i++) {
bounds.extend(overlays[i].getPosition());
}
$gmap.fitBounds(bounds);
}
});
You also need to add this to the case at the top:
case 'zoomToFitMarkers':
return $(this).trigger('gMap.zoomToFitMarkers');
Tried to clone so I could submit a pull request, but gitHub for Windows keeps failing to clone.
Is there an option to set the zoom level to auto, so it shows all markers (let's say in a city)?
The text was updated successfully, but these errors were encountered: