Having a minZoom would be really cool. That's one of the first things I tried to do on my first maps in v3.
This workaround is funny though, because now I have to manually cap the min AND the max for two different reasons. The latter because of this bug: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2177 Hopefully research into minZoom will reveal the cause and solution to the maxZoom bug. Good luck! On Mar 19, 9:20 am, Ben Appleton <[email protected]> wrote: > Adding a min zoom is a good idea, we should take a look. Meanwhile I > recommend capping zoom in zoom_changed. > > On 20 Mar 2010 00:02, "Brak" <[email protected]> wrote: > > Interesting idea. I wouldn't even need to change all my stored > coordinate values, just do the division on the fly when I construct > the markers and poly coordinates. > > Is there an *easy* way to set a minimum zoom level? I know you can set > a max, but a min? I'd like to have the UI reflect the new min if > possible. Intercepting the zoom_changed event and capping and > resetting the user's zoom seems really clunky but may be the only > option. Just adding 8 to the zoom level during a zoom_changed event > would probably create an infinite loop of zooming, where you would > eventually be able to see atoms <Sorry there's no map imagery for that > zoom level>. Alternatively, if I could somehow intercept the zoom > before it happened, I could adjust the zoom level and essentially put > an +8 offset into the zoom, so level 0 becomes 8, 1->9 etc. The UI > controls would still reflect the 0 end of the zoom scale and all would > be well. > > On Mar 17, 6:04 pm, Ben Appleton <[email protected]> wrote: > > > Nothing yet. Meanwhile, increase y... > > On 18 Mar 2010 05:20, "Brak" <[email protected]> wrote: > > > Any luck with the wrapping issue... > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%2b[email protected]> > . > For more options, visit this group > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
