geolocation-8.x-3.x-dev/modules/geolocation_leaflet/js/MapFeature/LeafletControlZoom.js
modules/geolocation_leaflet/js/MapFeature/LeafletControlZoom.js
import { LeafletMapFeature } from "./LeafletMapFeature.js";
/**
* @typedef {Object} ControlZoomSettings
*
* @extends {GeolocationMapFeatureSettings}
*
* @prop {("topleft" | "topright" | "bottomleft" | "bottomright")} position
*/
/**
* @prop {ControlZoomSettings} settings
*/
export default class LeafletControlZoom extends LeafletMapFeature {
constructor(settings, map) {
super(settings, map);
L.control
.zoom({
position: this.getLeafletPosition(this.settings.position),
})
.addTo(map.leafletMap);
}
}
