shramov/leaflet-plugins — pull request #51 by nhinze (2012-11-29 19:49:52+00:00)
Title: Max Zoom of layer on map type change

This little fix prevents that the google terrain map is out of synch with the overlays if the leaflet zoom level is too high.

The check only works when you switch to the terrain layer. It would be nice to find a way to prevent the user to zoom too far on the terrain layer too.