views:

43

answers:

1

Hey everyone.

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 renders it useless. Perhaps I am taking the wrong approach?

Thanks in advance!

+1  A: 

If it is for a single location, you can use setCenter() and setZoom() instead.

CrazyEnigma