Closed jobinthepast closed 10 years ago
autoAjust and autoZoom are not google maps options: https://developers.google.com/maps/documentation/javascript/reference?hl=fr#MapOptions
Zoom should be properly set, look here, the method is good: https://github.com/apneadiving/Google-Maps-for-Rails/blob/master/vendor/assets/javascripts/gmaps/google/builders/map.coffee#L10
I see:
if you do handler.fitMapToBounds();
, well the map will be adjusted to the bounds, so your zoom wont be taken into account, pretty clear no?
You can do:
handler.fitMapToBounds();
handler.getMap().setZoom(5);
next time please ask question on stackoverflow
Oh i'm sorry. Thank you!
Hi,
I can't seem to figure out how to control the zoom level of the map while others options seem to work.
Here's my view:
the scrollwheel and maxZoom work. however autoAjust, autoZoom, zoom don't work.
any suggestions please?
Thanks.