//= require_self
//= require leaflet.sidebar
-//= require leaflet.customzoom
//= require leaflet.locate
//= require leaflet.layers
//= require leaflet.key
map.invalidateSize();
});
- L.control.customZoom({position: 'topright'})
+ L.OSM.zoom({position: 'topright'})
.addTo(map);
L.control.locate({position: 'topright'})
-/*
- * L.Control.CustomZoom is used for the default zoom buttons on the map.
- */
-
-L.Control.CustomZoom = L.Control.extend({
+L.OSM.Zoom = L.Control.extend({
options: {
- position: 'topleft'
+ position: 'topright'
},
onAdd: function (map) {
this._map = map;
this._zoomInButton = this._createButton(
- '', 'Zoom in', zoomName + 'in', container, this._zoomIn, this);
+ '', I18n.t('javascripts.map.zoom.in'), zoomName + 'in', container, this._zoomIn, this);
this._zoomOutButton = this._createButton(
- '', 'Zoom out', zoomName + 'out', container, this._zoomOut, this);
+ '', I18n.t('javascripts.map.zoom.out'), zoomName + 'out', container, this._zoomOut, this);
map.on('zoomend zoomlevelschange', this._updateDisabled, this);
}
});
-L.control.customZoom = function (options) {
- return new L.Control.CustomZoom(options);
+L.OSM.zoom = function (options) {
+ return new L.OSM.Zoom(options);
};