"use strict";

var _ZOOM = {
    NEIGHBORHOOD: 16,
    MIN: 11,
    MAX: 19
};

module.exports = {
    ZOOM: Object.freeze ? Object.freeze(_ZOOM) : _ZOOM,

    setCenterAndZoomLL: function(map, zoom, location) {
        // Never zoom out, or try to zoom farther than allowed.
        var zoomToApply = Math.max(
            map.getZoom(),
            Math.min(zoom, map.getMaxZoom()));

        map.setView(location, zoomToApply);
    }
};

"use strict";

var _ZOOM = {
    NEIGHBORHOOD: 16,
    MIN: 0,
    MAX: 19
};

module.exports = {
    ZOOM: Object.freeze ? Object.freeze(_ZOOM) : _ZOOM,

    setCenterAndZoomLL: function(map, zoom, location) {
        // Never zoom out, or try to zoom farther than allowed.
        var zoomToApply = Math.max(
            map.getZoom(),
            Math.min(zoom, map.getMaxZoom()));

        map.setView(location, zoomToApply);
    }
};

Revert 6914a00d4 because it broke 'add event' map
Revert 6914a00d4 because it broke 'add event' map

reopens #512
