-function zoomPrecision(zoom) {
- return Math.max(0, Math.ceil(Math.log(zoom) / Math.LN2));
-}
-
-function normalBounds(bounds) {
- if (bounds instanceof L.LatLngBounds) return bounds;
- return new L.LatLngBounds(
- new L.LatLng(bounds[0][0], bounds[0][1]),
- new L.LatLng(bounds[1][0], bounds[1][1]));
-}
-
-function remoteEditHandler(bbox, select) {