I'm working with this example from Geocodezip  The markers on the map change depending on which category is selected. I would like them to automatically center on the category of markers but I'm having difficulty getting it to work.   The iss...
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 "MA, USA" should zoom the map to let me see t...
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 me. The LatLngBounds is built correctly, but when I ca...
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), parseFloat(country.lng));  mapBounds.extend(latlng);  }...
I have a problem when I try make a zoom on marker, I got a error:  Uncaught TypeError: e.target.getBounds is not a function  var rotas = L.geoJSON(paradas, {     onEachFeature: onEachFeature }).addTo(map);  function onEachFeature(feature, layer){...
I'm trying to show a certain area in a map in a responsive website. I want it to display the same area, when loaded, whatever is the window size, by zooming in and out. After some research I understood I need to use the fitBounds function of the...
I basically want to create maps which zoom in to the size corresponding to the SE-NW corners. I have tried so many variations but have not been able to get it to work. I managed to place two markers on one version of my script but...
I'm trying to do it in good way, but I can't..  Please tell me where is the problem.  Variable latlng is empty outside the jsondata.addListener.. I want to pass the latlng variable to:  var latlngbounds = new google.maps.LatLngBounds(); latln...
I was using this function, which given a latlong, it centers the google maps considering the offsetX and offsetY:  customCenter: function ( latlng, offsetx, offsety ) {     // latlng is the apparent centre-point     // offsetx is the distance you wan...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.