maplair 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2804 -0
- package/LICENSE +27 -0
- package/README.md +40 -0
- package/dist/esm/Maplair.js +71 -0
- package/dist/esm/Maplair.js.map +1 -0
- package/dist/esm/_virtual/_rolldown/runtime.js +13 -0
- package/dist/esm/control/AttributionControl.js +79 -0
- package/dist/esm/control/AttributionControl.js.map +1 -0
- package/dist/esm/control/Control.js +81 -0
- package/dist/esm/control/Control.js.map +1 -0
- package/dist/esm/control/LayersControl.js +220 -0
- package/dist/esm/control/LayersControl.js.map +1 -0
- package/dist/esm/control/ScaleControl.js +72 -0
- package/dist/esm/control/ScaleControl.js.map +1 -0
- package/dist/esm/control/ZoomControl.js +86 -0
- package/dist/esm/control/ZoomControl.js.map +1 -0
- package/dist/esm/core/Browser.js +31 -0
- package/dist/esm/core/Browser.js.map +1 -0
- package/dist/esm/core/Class.js +52 -0
- package/dist/esm/core/Class.js.map +1 -0
- package/dist/esm/core/Events.js +149 -0
- package/dist/esm/core/Events.js.map +1 -0
- package/dist/esm/core/Handler.js +32 -0
- package/dist/esm/core/Handler.js.map +1 -0
- package/dist/esm/core/I18n.js +36 -0
- package/dist/esm/core/I18n.js.map +1 -0
- package/dist/esm/core/Util.js +71 -0
- package/dist/esm/core/Util.js.map +1 -0
- package/dist/esm/dom/DomEvent.DoubleTap.js +74 -0
- package/dist/esm/dom/DomEvent.DoubleTap.js.map +1 -0
- package/dist/esm/dom/DomEvent.PointerEvents.js +46 -0
- package/dist/esm/dom/DomEvent.PointerEvents.js.map +1 -0
- package/dist/esm/dom/DomEvent.js +135 -0
- package/dist/esm/dom/DomEvent.js.map +1 -0
- package/dist/esm/dom/DomUtil.js +107 -0
- package/dist/esm/dom/DomUtil.js.map +1 -0
- package/dist/esm/dom/Draggable.js +107 -0
- package/dist/esm/dom/Draggable.js.map +1 -0
- package/dist/esm/dom/PosAnimation.js +56 -0
- package/dist/esm/dom/PosAnimation.js.map +1 -0
- package/dist/esm/geo/LatLng.js +65 -0
- package/dist/esm/geo/LatLng.js.map +1 -0
- package/dist/esm/geo/LatLngBounds.js +114 -0
- package/dist/esm/geo/LatLngBounds.js.map +1 -0
- package/dist/esm/geo/crs/CRS.js +51 -0
- package/dist/esm/geo/crs/CRS.js.map +1 -0
- package/dist/esm/geo/crs/EPSG3395.js +16 -0
- package/dist/esm/geo/crs/EPSG3395.js.map +1 -0
- package/dist/esm/geo/crs/EPSG3857.js +19 -0
- package/dist/esm/geo/crs/EPSG3857.js.map +1 -0
- package/dist/esm/geo/crs/EPSG4326.js +13 -0
- package/dist/esm/geo/crs/EPSG4326.js.map +1 -0
- package/dist/esm/geo/crs/EarthCRS.js +14 -0
- package/dist/esm/geo/crs/EarthCRS.js.map +1 -0
- package/dist/esm/geo/crs/SimpleCRS.js +23 -0
- package/dist/esm/geo/crs/SimpleCRS.js.map +1 -0
- package/dist/esm/geo/projection/Projection.LonLat.js +19 -0
- package/dist/esm/geo/projection/Projection.LonLat.js.map +1 -0
- package/dist/esm/geo/projection/Projection.Mercator.js +33 -0
- package/dist/esm/geo/projection/Projection.Mercator.js.map +1 -0
- package/dist/esm/geo/projection/Projection.SphericalMercator.js +27 -0
- package/dist/esm/geo/projection/Projection.SphericalMercator.js.map +1 -0
- package/dist/esm/geo/projection/index.js +14 -0
- package/dist/esm/geo/projection/index.js.map +1 -0
- package/dist/esm/geometry/Bounds.js +91 -0
- package/dist/esm/geometry/Bounds.js.map +1 -0
- package/dist/esm/geometry/LineUtil.js +169 -0
- package/dist/esm/geometry/LineUtil.js.map +1 -0
- package/dist/esm/geometry/Point.js +119 -0
- package/dist/esm/geometry/Point.js.map +1 -0
- package/dist/esm/geometry/PolyUtil.js +89 -0
- package/dist/esm/geometry/PolyUtil.js.map +1 -0
- package/dist/esm/geometry/Transformation.js +34 -0
- package/dist/esm/geometry/Transformation.js.map +1 -0
- package/dist/esm/layer/BlanketOverlay.js +87 -0
- package/dist/esm/layer/BlanketOverlay.js.map +1 -0
- package/dist/esm/layer/DivOverlay.js +192 -0
- package/dist/esm/layer/DivOverlay.js.map +1 -0
- package/dist/esm/layer/FeatureGroup.js +40 -0
- package/dist/esm/layer/FeatureGroup.js.map +1 -0
- package/dist/esm/layer/GeoJSON.js +192 -0
- package/dist/esm/layer/GeoJSON.js.map +1 -0
- package/dist/esm/layer/ImageOverlay.js +140 -0
- package/dist/esm/layer/ImageOverlay.js.map +1 -0
- package/dist/esm/layer/Layer.js +119 -0
- package/dist/esm/layer/Layer.js.map +1 -0
- package/dist/esm/layer/LayerGroup.js +58 -0
- package/dist/esm/layer/LayerGroup.js.map +1 -0
- package/dist/esm/layer/Popup.js +224 -0
- package/dist/esm/layer/Popup.js.map +1 -0
- package/dist/esm/layer/SVGOverlay.js +21 -0
- package/dist/esm/layer/SVGOverlay.js.map +1 -0
- package/dist/esm/layer/Tooltip.js +228 -0
- package/dist/esm/layer/Tooltip.js.map +1 -0
- package/dist/esm/layer/VideoOverlay.js +54 -0
- package/dist/esm/layer/VideoOverlay.js.map +1 -0
- package/dist/esm/layer/marker/DefaultIcon.js +50 -0
- package/dist/esm/layer/marker/DefaultIcon.js.map +1 -0
- package/dist/esm/layer/marker/DivIcon.js +37 -0
- package/dist/esm/layer/marker/DivIcon.js.map +1 -0
- package/dist/esm/layer/marker/Icon.js +65 -0
- package/dist/esm/layer/marker/Icon.js.map +1 -0
- package/dist/esm/layer/marker/Marker.Drag.js +77 -0
- package/dist/esm/layer/marker/Marker.Drag.js.map +1 -0
- package/dist/esm/layer/marker/Marker.js +235 -0
- package/dist/esm/layer/marker/Marker.js.map +1 -0
- package/dist/esm/layer/tile/GridLayer.js +447 -0
- package/dist/esm/layer/tile/GridLayer.js.map +1 -0
- package/dist/esm/layer/tile/TileLayer.js +139 -0
- package/dist/esm/layer/tile/TileLayer.js.map +1 -0
- package/dist/esm/layer/tile/WMSTileLayer.js +68 -0
- package/dist/esm/layer/tile/WMSTileLayer.js.map +1 -0
- package/dist/esm/layer/vector/Canvas.js +292 -0
- package/dist/esm/layer/vector/Canvas.js.map +1 -0
- package/dist/esm/layer/vector/Circle.js +35 -0
- package/dist/esm/layer/vector/Circle.js.map +1 -0
- package/dist/esm/layer/vector/CircleMarker.js +69 -0
- package/dist/esm/layer/vector/CircleMarker.js.map +1 -0
- package/dist/esm/layer/vector/Path.js +68 -0
- package/dist/esm/layer/vector/Path.js.map +1 -0
- package/dist/esm/layer/vector/Polygon.js +70 -0
- package/dist/esm/layer/vector/Polygon.js.map +1 -0
- package/dist/esm/layer/vector/Polyline.js +152 -0
- package/dist/esm/layer/vector/Polyline.js.map +1 -0
- package/dist/esm/layer/vector/Rectangle.js +25 -0
- package/dist/esm/layer/vector/Rectangle.js.map +1 -0
- package/dist/esm/layer/vector/Renderer.getRenderer.js +31 -0
- package/dist/esm/layer/vector/Renderer.getRenderer.js.map +1 -0
- package/dist/esm/layer/vector/Renderer.js +39 -0
- package/dist/esm/layer/vector/Renderer.js.map +1 -0
- package/dist/esm/layer/vector/SVG.js +115 -0
- package/dist/esm/layer/vector/SVG.js.map +1 -0
- package/dist/esm/map/Map.js +844 -0
- package/dist/esm/map/Map.js.map +1 -0
- package/dist/esm/map/handler/BoxZoomHandler.js +105 -0
- package/dist/esm/map/handler/BoxZoomHandler.js.map +1 -0
- package/dist/esm/map/handler/DoubleClickZoomHandler.js +27 -0
- package/dist/esm/map/handler/DoubleClickZoomHandler.js.map +1 -0
- package/dist/esm/map/handler/DragHandler.js +133 -0
- package/dist/esm/map/handler/DragHandler.js.map +1 -0
- package/dist/esm/map/handler/KeyboardHandler.js +117 -0
- package/dist/esm/map/handler/KeyboardHandler.js.map +1 -0
- package/dist/esm/map/handler/PinchZoomHandler.js +96 -0
- package/dist/esm/map/handler/PinchZoomHandler.js.map +1 -0
- package/dist/esm/map/handler/ScrollWheelZoomHandler.js +50 -0
- package/dist/esm/map/handler/ScrollWheelZoomHandler.js.map +1 -0
- package/dist/esm/map/handler/TapHoldHandler.js +77 -0
- package/dist/esm/map/handler/TapHoldHandler.js.map +1 -0
- package/dist/esm/package.js +6 -0
- package/dist/esm/package.js.map +1 -0
- package/dist/images/layers.svg +1 -0
- package/dist/images/logo.svg +1 -0
- package/dist/images/marker-icon.svg +1 -0
- package/dist/images/marker-shadow.svg +1 -0
- package/dist/maplair-global-src.js +6810 -0
- package/dist/maplair-global-src.js.map +1 -0
- package/dist/maplair-global.js +12 -0
- package/dist/maplair-global.js.map +1 -0
- package/dist/maplair-src.js +6704 -0
- package/dist/maplair-src.js.map +1 -0
- package/dist/maplair.css +730 -0
- package/dist/maplair.js +7 -0
- package/dist/maplair.js.map +1 -0
- package/i18n/cs.json +12 -0
- package/i18n/de.json +12 -0
- package/i18n/en.json +12 -0
- package/i18n/es.json +12 -0
- package/i18n/fr.json +12 -0
- package/i18n/hu.json +12 -0
- package/i18n/it.json +12 -0
- package/i18n/rm.json +12 -0
- package/i18n/sk.json +12 -0
- package/i18n/sl.json +12 -0
- package/package.json +87 -0
- package/src/Maplair.js +24 -0
- package/src/control/AttributionControl.js +147 -0
- package/src/control/Control.js +174 -0
- package/src/control/LayersControl.js +444 -0
- package/src/control/ScaleControl.js +141 -0
- package/src/control/ZoomControl.js +147 -0
- package/src/control/index.js +5 -0
- package/src/core/Browser.js +75 -0
- package/src/core/Class.js +97 -0
- package/src/core/Events.js +334 -0
- package/src/core/Handler.js +59 -0
- package/src/core/I18n.js +76 -0
- package/src/core/Util.js +122 -0
- package/src/core/index.js +8 -0
- package/src/dom/DomEvent.DoubleTap.js +120 -0
- package/src/dom/DomEvent.PointerEvents.js +75 -0
- package/src/dom/DomEvent.js +282 -0
- package/src/dom/DomUtil.js +175 -0
- package/src/dom/Draggable.js +204 -0
- package/src/dom/PosAnimation.js +115 -0
- package/src/dom/index.js +9 -0
- package/src/geo/LatLng.js +163 -0
- package/src/geo/LatLngBounds.js +260 -0
- package/src/geo/crs/CRS.js +143 -0
- package/src/geo/crs/EPSG3395.js +19 -0
- package/src/geo/crs/EPSG3857.js +26 -0
- package/src/geo/crs/EPSG4326.js +21 -0
- package/src/geo/crs/EarthCRS.js +32 -0
- package/src/geo/crs/SimpleCRS.js +35 -0
- package/src/geo/crs/index.js +6 -0
- package/src/geo/index.js +7 -0
- package/src/geo/projection/Projection.LonLat.js +30 -0
- package/src/geo/projection/Projection.Mercator.js +53 -0
- package/src/geo/projection/Projection.SphericalMercator.js +46 -0
- package/src/geo/projection/index.js +26 -0
- package/src/geometry/Bounds.js +222 -0
- package/src/geometry/LineUtil.js +299 -0
- package/src/geometry/Point.js +239 -0
- package/src/geometry/PolyUtil.js +129 -0
- package/src/geometry/Transformation.js +67 -0
- package/src/geometry/index.js +8 -0
- package/src/images/layers.svg +1 -0
- package/src/images/logo.svg +1 -0
- package/src/images/marker-icon.svg +1 -0
- package/src/images/marker-shadow.svg +1 -0
- package/src/layer/BlanketOverlay.js +171 -0
- package/src/layer/DivOverlay.js +353 -0
- package/src/layer/FeatureGroup.js +93 -0
- package/src/layer/GeoJSON.js +432 -0
- package/src/layer/ImageOverlay.js +279 -0
- package/src/layer/Layer.js +273 -0
- package/src/layer/LayerGroup.js +129 -0
- package/src/layer/Popup.js +528 -0
- package/src/layer/SVGOverlay.js +47 -0
- package/src/layer/Tooltip.js +469 -0
- package/src/layer/VideoOverlay.js +111 -0
- package/src/layer/index.js +18 -0
- package/src/layer/marker/DefaultIcon.js +79 -0
- package/src/layer/marker/DivIcon.js +76 -0
- package/src/layer/marker/Icon.js +164 -0
- package/src/layer/marker/Marker.Drag.js +161 -0
- package/src/layer/marker/Marker.js +465 -0
- package/src/layer/marker/index.js +5 -0
- package/src/layer/tile/GridLayer.js +901 -0
- package/src/layer/tile/TileLayer.js +299 -0
- package/src/layer/tile/WMSTileLayer.js +133 -0
- package/src/layer/tile/index.js +3 -0
- package/src/layer/vector/Canvas.js +479 -0
- package/src/layer/vector/Circle.js +87 -0
- package/src/layer/vector/CircleMarker.js +110 -0
- package/src/layer/vector/Path.js +145 -0
- package/src/layer/vector/Polygon.js +160 -0
- package/src/layer/vector/Polyline.js +296 -0
- package/src/layer/vector/Rectangle.js +52 -0
- package/src/layer/vector/Renderer.getRenderer.js +48 -0
- package/src/layer/vector/Renderer.js +75 -0
- package/src/layer/vector/SVG.js +216 -0
- package/src/layer/vector/index.js +10 -0
- package/src/map/Map.js +1830 -0
- package/src/map/handler/BoxZoomHandler.js +156 -0
- package/src/map/handler/DoubleClickZoomHandler.js +62 -0
- package/src/map/handler/DragHandler.js +240 -0
- package/src/map/handler/KeyboardHandler.js +188 -0
- package/src/map/handler/PinchZoomHandler.js +157 -0
- package/src/map/handler/ScrollWheelZoomHandler.js +98 -0
- package/src/map/handler/TapHoldHandler.js +111 -0
- package/src/map/index.js +8 -0
- package/src/maplair.css +730 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Map.js","names":["Browser","Util.setOptions","DomUtil.create","DomEvent.getPointerPosition","DomUtil.get","Util.stamp","DomEvent.off","DomEvent.on","DomEvent.isExternalTarget","DomUtil.getPosition","RendererSupport"],"sources":["../../../src/map/Map.js"],"sourcesContent":["import * as Util from '../core/Util.js';\nimport {Evented} from '../core/Events.js';\nimport {EPSG3857} from '../geo/crs/EPSG3857.js';\nimport {Point} from '../geometry/Point.js';\nimport {Bounds} from '../geometry/Bounds.js';\nimport {LatLng} from '../geo/LatLng.js';\nimport {LatLngBounds} from '../geo/LatLngBounds.js';\nimport Browser from '../core/Browser.js';\nimport * as DomEvent from '../dom/DomEvent.js';\nimport * as DomUtil from '../dom/DomUtil.js';\nimport {PosAnimation} from '../dom/PosAnimation.js';\nimport * as PointerEvents from '../dom/DomEvent.PointerEvents.js';\nimport {Control} from '../control/Control.js';\nimport {AttributionControl} from '../control/AttributionControl.js';\nimport {ZoomControl} from '../control/ZoomControl.js';\nimport {Layer} from '../layer/Layer.js';\nimport {DivOverlay} from '../layer/DivOverlay.js';\nimport {Popup} from '../layer/Popup.js';\nimport {Tooltip} from '../layer/Tooltip.js';\nimport * as RendererSupport from '../layer/vector/Renderer.getRenderer.js';\nimport {BoxZoomHandler} from './handler/BoxZoomHandler.js';\nimport {DoubleClickZoomHandler} from './handler/DoubleClickZoomHandler.js';\nimport {DragHandler} from './handler/DragHandler.js';\nimport {KeyboardHandler} from './handler/KeyboardHandler.js';\nimport {PinchZoomHandler} from './handler/PinchZoomHandler.js';\nimport {ScrollWheelZoomHandler} from './handler/ScrollWheelZoomHandler.js';\nimport {TapHoldHandler} from './handler/TapHoldHandler.js';\n\n/*\n * @class MaplairMap\n * @inherits Evented\n *\n * The central class of the API — it is used to create a map on a page and manipulate it.\n *\n * @example\n *\n * ```js\n * // initialize the map on the \"map\" div with a given center and zoom\n * const map = new MaplairMap('map', {\n * \tcenter: [51.505, -0.09],\n * \tzoom: 13\n * });\n * ```\n *\n */\n\n// @section\n// @constructor MaplairMap(id: String, options?: MaplairMap options)\n// Instantiates a map object given the DOM ID of a `<div>` element\n// and optionally an object literal with `MaplairMap options`.\n//\n// @alternative\n// @constructor MaplairMap(el: HTMLElement, options?: MaplairMap options)\n// Instantiates a map object given an instance of a `<div>` HTML element\n// and optionally an object literal with `MaplairMap options`.\n//\n// @alternative\n// @constructor Map(id: String, options?: Map options)\n// Instantiates a map object given the DOM ID of a `<div>` element\n// and optionally an object literal with `Map options`.\n//\n// @alternative\n// @constructor Map(el: HTMLElement, options?: Map options)\n// Instantiates a map object given an instance of a `<div>` HTML element\n// and optionally an object literal with `Map options`.\nexport class MaplairMap extends Evented {\n\n\tstatic {\n\t\tthis.setDefaultOptions({\n\t\t\t// @section Map State Options\n\t\t\t// @option crs: CRS = EPSG3857\n\t\t\t// The [Coordinate Reference System](#crs) to use. Don't change this if you're not\n\t\t\t// sure what it means.\n\t\t\tcrs: EPSG3857,\n\n\t\t\t// @option center: LatLng = undefined\n\t\t\t// Initial geographic center of the map\n\t\t\tcenter: undefined,\n\n\t\t\t// @option zoom: Number = undefined\n\t\t\t// Initial map zoom level\n\t\t\tzoom: undefined,\n\n\t\t\t// @option minZoom: Number = *\n\t\t\t// Minimum zoom level of the map.\n\t\t\t// If not specified and at least one `GridLayer` or `TileLayer` is in the map,\n\t\t\t// the lowest of their `minZoom` options will be used instead.\n\t\t\tminZoom: undefined,\n\n\t\t\t// @option maxZoom: Number = *\n\t\t\t// Maximum zoom level of the map.\n\t\t\t// If not specified and at least one `GridLayer` or `TileLayer` is in the map,\n\t\t\t// the highest of their `maxZoom` options will be used instead.\n\t\t\tmaxZoom: undefined,\n\n\t\t\t// @option layers: Layer[] = []\n\t\t\t// Array of layers that will be added to the map initially\n\t\t\tlayers: [],\n\n\t\t\t// @option maxBounds: LatLngBounds = null\n\t\t\t// When this option is set, the map restricts the view to the given\n\t\t\t// geographical bounds, bouncing the user back if the user tries to pan\n\t\t\t// outside the view. To set the restriction dynamically, use\n\t\t\t// [`setMaxBounds`](#map-setmaxbounds) method.\n\t\t\tmaxBounds: undefined,\n\n\t\t\t// @option renderer: Renderer = *\n\t\t\t// The default method for drawing vector layers on the map. `SVG`\n\t\t\t// or `Canvas` by default depending on browser support.\n\t\t\trenderer: undefined,\n\n\n\t\t\t// @section Animation Options\n\t\t\t// @option zoomAnimation: Boolean = *\n\t\t\t// Whether the map zoom animation is enabled.\n\t\t\t// Animations are enabled by default unless the user has configured\n\t\t\t// their browser for reduced [motion](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-reduced-motion#user_preferences).\n\t\t\tzoomAnimation: !Browser.reducedMotion,\n\n\t\t\t// @option zoomAnimationThreshold: Number = 4\n\t\t\t// Won't animate zoom if the zoom difference exceeds this value.\n\t\t\tzoomAnimationThreshold: 4,\n\n\t\t\t// @option fadeAnimation: Boolean = *\n\t\t\t// Whether the tile fade animation is enabled.\n\t\t\t// Animations are enabled by default unless the user has configured\n\t\t\t// their browser for reduced [motion](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-reduced-motion#user_preferences).\n\t\t\tfadeAnimation: !Browser.reducedMotion,\n\n\t\t\t// @option markerZoomAnimation: Boolean = true\n\t\t\t// Whether markers animate their zoom with the zoom animation, if disabled\n\t\t\t// they will disappear for the length of the animation.\n\t\t\tmarkerZoomAnimation: true,\n\n\t\t\t// @option markerCulling: Boolean = false\n\t\t\t// Whether markers far outside of the map view (more than half a view\n\t\t\t// away) are taken off the page until the map is moved closer to them.\n\t\t\t// This reduces the browser's rendering work, and the work of\n\t\t\t// repositioning markers while zooming, when a map has many markers\n\t\t\t// (e.g. several thousands) of which only some are visible at a time.\n\t\t\tmarkerCulling: false,\n\n\t\t\t// @option transform3DLimit: Number = 2^23\n\t\t\t// Defines the maximum size of a CSS translation transform. The default\n\t\t\t// value should not be changed unless a web browser positions layers in\n\t\t\t// the wrong place after doing a large `panBy`.\n\t\t\ttransform3DLimit: 8388608, // Precision limit of a 32-bit float\n\n\t\t\t// @section Interaction Options\n\t\t\t// @option zoomSnap: Number = 1\n\t\t\t// Forces the map's zoom level to always be a multiple of this, particularly\n\t\t\t// right after a [`fitBounds()`](#map-fitbounds) or a pinch-zoom.\n\t\t\t// By default, the zoom level snaps to the nearest integer; lower values\n\t\t\t// (e.g. `0.5` or `0.1`) allow for greater granularity. A value of `0`\n\t\t\t// means the zoom level will not be snapped after `fitBounds` or a pinch-zoom.\n\t\t\tzoomSnap: 1,\n\n\t\t\t// @option zoomDelta: Number = 1\n\t\t\t// Controls how much the map's zoom level will change after a\n\t\t\t// [`zoomIn()`](#map-zoomin), [`zoomOut()`](#map-zoomout), pressing `+`\n\t\t\t// or `-` on the keyboard, or using the [zoom controls](#control-zoom).\n\t\t\t// Values smaller than `1` (e.g. `0.5`) allow for greater granularity.\n\t\t\tzoomDelta: 1,\n\n\t\t\t// @option trackResize: Boolean = true\n\t\t\t// Whether the map automatically handles browser window resize to update itself.\n\t\t\ttrackResize: true\n\t\t});\n\t}\n\n\tconstructor(id, options) { // (HTMLElement or String, Object)\n\t\tsuper();\n\t\toptions = Util.setOptions(this, options);\n\n\t\t// Make sure to assign internal flags at the beginning,\n\t\t// to avoid inconsistent state in some edge cases.\n\t\tthis._handlers = [];\n\t\tthis._layers = {};\n\t\tthis._zoomBoundLayers = {};\n\t\tthis._sizeChanged = true;\n\n\t\tthis._initContainer(id);\n\t\tthis._initLayout();\n\n\t\tthis._initEvents();\n\n\t\tif (options.maxBounds) {\n\t\t\tthis.setMaxBounds(options.maxBounds);\n\t\t}\n\n\t\tif (options.zoom !== undefined) {\n\t\t\tthis._zoom = this._limitZoom(options.zoom);\n\t\t}\n\n\t\tif (options.center && options.zoom !== undefined) {\n\t\t\tthis.setView(new LatLng(options.center), options.zoom, {reset: true});\n\t\t}\n\n\t\tthis.callInitHooks(MaplairMap);\n\n\t\tthis._zoomAnimated = this.options.zoomAnimation;\n\n\t\t// zoom transitions run with the same duration for all layers, so if one of transitionend events\n\t\t// happens after starting zoom animation (propagating to the map pane), we know that it ended globally\n\t\tif (this._zoomAnimated) {\n\t\t\tthis._createAnimProxy();\n\t\t}\n\n\t\tthis._addLayers(this.options.layers);\n\t}\n\n\t// @section Methods for modifying map state\n\n\t// @method setView(center: LatLng, zoom?: Number, options?: Zoom/pan options): this\n\t// Sets the view of the map (geographical center and zoom) with the given\n\t// animation options.\n\tsetView(center, zoom, options) {\n\n\t\tzoom = zoom === undefined ? this._zoom : this._limitZoom(zoom);\n\t\tcenter = this._limitCenter(new LatLng(center), zoom, this.options.maxBounds);\n\t\toptions ??= {};\n\n\t\tthis._stop();\n\n\t\tif (this._loaded && !options.reset && options !== true) {\n\n\t\t\tif (options.animate !== undefined) {\n\t\t\t\toptions.zoom = {animate: options.animate, ...options.zoom};\n\t\t\t\toptions.pan = {animate: options.animate, duration: options.duration, ...options.pan};\n\t\t\t}\n\n\t\t\t// try animating pan or zoom\n\t\t\tconst moved = (this._zoom !== zoom) ?\n\t\t\t\tthis._tryAnimatedZoom && this._tryAnimatedZoom(center, zoom, options.zoom) :\n\t\t\t\tthis._tryAnimatedPan(center, options.pan);\n\n\t\t\tif (moved) {\n\t\t\t\t// prevent resize handler call, the view will refresh after animation anyway\n\t\t\t\tclearTimeout(this._sizeTimer);\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\n\t\t// animation didn't start, just reset the map view\n\t\tthis._resetView(center, zoom, options.pan?.noMoveStart);\n\n\t\treturn this;\n\t}\n\n\t// @method setZoom(zoom: Number, options?: Zoom/pan options): this\n\t// Sets the zoom of the map.\n\tsetZoom(zoom, options) {\n\t\tif (!this._loaded) {\n\t\t\tthis._zoom = zoom;\n\t\t\treturn this;\n\t\t}\n\t\treturn this.setView(this.getCenter(), zoom, {zoom: options});\n\t}\n\n\t// @method zoomIn(delta?: Number, options?: Zoom options): this\n\t// Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).\n\tzoomIn(delta, options) {\n\t\tdelta ??= this.options.zoomDelta;\n\t\treturn this.setZoom(this._zoom + delta, options);\n\t}\n\n\t// @method zoomOut(delta?: Number, options?: Zoom options): this\n\t// Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).\n\tzoomOut(delta, options) {\n\t\tdelta ??= this.options.zoomDelta;\n\t\treturn this.setZoom(this._zoom - delta, options);\n\t}\n\n\t// @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this\n\t// Zooms the map while keeping a specified geographical point on the map\n\t// stationary (e.g. used internally for scroll zoom and double-click zoom).\n\t// @alternative\n\t// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this\n\t// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.\n\tsetZoomAround(latlng, zoom, options) {\n\t\tconst scale = this.getZoomScale(zoom),\n\t\tviewHalf = this.getSize().divideBy(2),\n\t\tcontainerPoint = latlng instanceof Point ? latlng : this.latLngToContainerPoint(latlng),\n\n\t\tcenterOffset = containerPoint.subtract(viewHalf).multiplyBy(1 - 1 / scale),\n\t\tnewCenter = this.containerPointToLatLng(viewHalf.add(centerOffset));\n\n\t\treturn this.setView(newCenter, zoom, {zoom: options});\n\t}\n\n\t_getBoundsCenterZoom(bounds, options) {\n\n\t\toptions ??= {};\n\t\tbounds = bounds.getBounds ? bounds.getBounds() : new LatLngBounds(bounds);\n\n\t\tconst paddingTL = new Point(options.paddingTopLeft || options.padding || [0, 0]),\n\t\tpaddingBR = new Point(options.paddingBottomRight || options.padding || [0, 0]);\n\n\t\tlet zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR));\n\n\t\tzoom = (typeof options.maxZoom === 'number') ? Math.min(options.maxZoom, zoom) : zoom;\n\n\t\tif (zoom === Infinity) {\n\t\t\treturn {\n\t\t\t\tcenter: bounds.getCenter(),\n\t\t\t\tzoom\n\t\t\t};\n\t\t}\n\n\t\tconst paddingOffset = paddingBR.subtract(paddingTL).divideBy(2),\n\n\t\tswPoint = this.project(bounds.getSouthWest(), zoom),\n\t\tnePoint = this.project(bounds.getNorthEast(), zoom),\n\t\tcenter = this.unproject(swPoint.add(nePoint).divideBy(2).add(paddingOffset), zoom);\n\n\t\treturn {\n\t\t\tcenter,\n\t\t\tzoom\n\t\t};\n\t}\n\n\t// @method fitBounds(bounds: LatLngBounds, options?: fitBounds options): this\n\t// Sets a map view that contains the given geographical bounds with the\n\t// maximum zoom level possible.\n\tfitBounds(bounds, options) {\n\n\t\tbounds = new LatLngBounds(bounds);\n\n\t\tif (!bounds.isValid()) {\n\t\t\tthrow new Error('Bounds are not valid.');\n\t\t}\n\n\t\tconst target = this._getBoundsCenterZoom(bounds, options);\n\t\treturn this.setView(target.center, target.zoom, options);\n\t}\n\n\t// @method fitWorld(options?: fitBounds options): this\n\t// Sets a map view that mostly contains the whole world with the maximum\n\t// zoom level possible.\n\tfitWorld(options) {\n\t\treturn this.fitBounds([[-90, -180], [90, 180]], options);\n\t}\n\n\t// @method panTo(latlng: LatLng, options?: Pan options): this\n\t// Pans the map to a given center.\n\tpanTo(center, options) {\n\t\treturn this.setView(center, this._zoom, {pan: options});\n\t}\n\n\t// @method panBy(offset: Point, options?: Pan options): this\n\t// Pans the map by a given number of pixels (animated).\n\tpanBy(offset, options) {\n\t\toffset = new Point(offset).round();\n\t\toptions ??= {};\n\n\t\tif (!offset.x && !offset.y) {\n\t\t\treturn this.fire('moveend');\n\t\t}\n\t\t// If we pan too far, Chrome gets issues with tiles\n\t\t// and makes them disappear or appear in the wrong place (slightly offset) #2602\n\t\tif (options.animate !== true && !this.getSize().contains(offset)) {\n\t\t\tthis._resetView(this.unproject(this.project(this.getCenter()).add(offset)), this.getZoom());\n\t\t\treturn this;\n\t\t}\n\n\t\tif (!this._panAnim) {\n\t\t\tthis._panAnim = new PosAnimation();\n\n\t\t\tthis._panAnim.on({\n\t\t\t\t'step': this._onPanTransitionStep,\n\t\t\t\t'end': this._onPanTransitionEnd\n\t\t\t}, this);\n\t\t}\n\n\t\t// don't fire movestart if animating inertia\n\t\tif (!options.noMoveStart) {\n\t\t\tthis.fire('movestart');\n\t\t}\n\n\t\t// animate pan unless browser prefers reduced motion or animate: false specified\n\t\tif (!Browser.reducedMotion && options.animate !== false) {\n\t\t\tthis._mapPane.classList.add('maplair-pan-anim');\n\n\t\t\tconst newPos = this._getMapPanePos().subtract(offset).round();\n\t\t\tthis._panAnim.run(this._mapPane, newPos, options.duration || 0.25, options.easeLinearity);\n\t\t} else {\n\t\t\tthis._rawPanBy(offset);\n\t\t\tthis.fire('move').fire('moveend');\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t// @method flyTo(latlng: LatLng, zoom?: Number, options?: Zoom/pan options): this\n\t// Sets the view of the map (geographical center and zoom) performing a smooth\n\t// pan-zoom animation.\n\tflyTo(targetCenter, targetZoom, options) {\n\n\t\toptions ??= {};\n\t\tif (Browser.reducedMotion || options.animate === false) {\n\t\t\treturn this.setView(targetCenter, targetZoom, options);\n\t\t}\n\n\t\tthis._stop();\n\n\t\tconst from = this.project(this.getCenter()),\n\t\tto = this.project(targetCenter),\n\t\tsize = this.getSize(),\n\t\tstartZoom = this._zoom;\n\n\t\ttargetCenter = new LatLng(targetCenter);\n\t\ttargetZoom = targetZoom === undefined ? startZoom : this._limitZoom(targetZoom);\n\n\t\tconst w0 = Math.max(size.x, size.y),\n\t\tw1 = w0 * this.getZoomScale(startZoom, targetZoom),\n\t\tu1 = (to.distanceTo(from)) || 1,\n\t\trho = 1.42,\n\t\trho2 = rho * rho;\n\n\t\tfunction r(i) {\n\t\t\tconst s1 = i ? -1 : 1,\n\t\t\ts2 = i ? w1 : w0,\n\t\t\tt1 = w1 * w1 - w0 * w0 + s1 * rho2 * rho2 * u1 * u1,\n\t\t\tb1 = 2 * s2 * rho2 * u1,\n\t\t\tb = t1 / b1,\n\t\t\tsq = Math.sqrt(b * b + 1) - b;\n\n\t\t\t// workaround for floating point precision bug when sq = 0, log = -Infinite,\n\t\t\t// thus triggering an infinite loop in flyTo\n\t\t\tconst log = sq < 0.000000015 ? -18 : Math.log(sq);\n\n\t\t\treturn log;\n\t\t}\n\n\t\tfunction sinh(n) { return (Math.exp(n) - Math.exp(-n)) / 2; }\n\t\tfunction cosh(n) { return (Math.exp(n) + Math.exp(-n)) / 2; }\n\t\tfunction tanh(n) { return sinh(n) / cosh(n); }\n\n\t\tconst r0 = r(0);\n\n\t\tfunction w(s) { return w0 * (cosh(r0) / cosh(r0 + rho * s)); }\n\t\tfunction u(s) { return w0 * (cosh(r0) * tanh(r0 + rho * s) - sinh(r0)) / rho2; }\n\n\t\tfunction easeOut(t) { return 1 - (1 - t) ** 1.5; }\n\n\t\tconst start = Date.now(),\n\t\tS = (r(1) - r0) / rho,\n\t\tduration = options.duration ? 1000 * options.duration : 1000 * S * 0.8;\n\n\t\tconst frame = () => {\n\t\t\tconst t = (Date.now() - start) / duration,\n\t\t\ts = easeOut(t) * S;\n\n\t\t\tif (t <= 1) {\n\t\t\t\tthis._flyToFrame = requestAnimationFrame(frame);\n\n\t\t\t\tthis._move(\n\t\t\t\t\tthis.unproject(from.add(to.subtract(from).multiplyBy(u(s) / u1)), startZoom),\n\t\t\t\t\tthis.getScaleZoom(w0 / w(s), startZoom),\n\t\t\t\t\t{flyTo: true});\n\n\t\t\t} else {\n\t\t\t\tthis\n\t\t\t\t\t._move(targetCenter, targetZoom)\n\t\t\t\t\t._moveEnd(true);\n\t\t\t}\n\t\t};\n\n\t\tthis._moveStart(true, options.noMoveStart);\n\n\t\tframe(this);\n\t\treturn this;\n\t}\n\n\t// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this\n\t// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),\n\t// but takes a bounds parameter like [`fitBounds`](#map-fitbounds).\n\tflyToBounds(bounds, options) {\n\t\tconst target = this._getBoundsCenterZoom(bounds, options);\n\t\treturn this.flyTo(target.center, target.zoom, options);\n\t}\n\n\t// @method setMaxBounds(bounds: LatLngBounds): this\n\t// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).\n\tsetMaxBounds(bounds) {\n\t\tbounds = new LatLngBounds(bounds);\n\n\t\tif (this.listens('moveend', this._panInsideMaxBounds)) {\n\t\t\tthis.off('moveend', this._panInsideMaxBounds);\n\t\t}\n\n\t\tif (!bounds.isValid()) {\n\t\t\tthis.options.maxBounds = null;\n\t\t\treturn this;\n\t\t}\n\n\t\tthis.options.maxBounds = bounds;\n\n\t\tif (this._loaded) {\n\t\t\tthis._panInsideMaxBounds();\n\t\t}\n\n\t\treturn this.on('moveend', this._panInsideMaxBounds);\n\t}\n\n\t// @method setMinZoom(zoom: Number): this\n\t// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).\n\tsetMinZoom(zoom) {\n\t\tconst oldZoom = this.options.minZoom;\n\t\tthis.options.minZoom = zoom;\n\n\t\tif (this._loaded && oldZoom !== zoom) {\n\t\t\tthis.fire('zoomlevelschange');\n\n\t\t\tif (this.getZoom() < this.options.minZoom) {\n\t\t\t\treturn this.setZoom(zoom);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t// @method setMaxZoom(zoom: Number): this\n\t// Sets the upper limit for the available zoom levels (see the [maxZoom](#map-maxzoom) option).\n\tsetMaxZoom(zoom) {\n\t\tconst oldZoom = this.options.maxZoom;\n\t\tthis.options.maxZoom = zoom;\n\n\t\tif (this._loaded && oldZoom !== zoom) {\n\t\t\tthis.fire('zoomlevelschange');\n\n\t\t\tif (this.getZoom() > this.options.maxZoom) {\n\t\t\t\treturn this.setZoom(zoom);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t// @method panInsideBounds(bounds: LatLngBounds, options?: Pan options): this\n\t// Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.\n\tpanInsideBounds(bounds, options) {\n\t\tthis._enforcingBounds = true;\n\t\tconst center = this.getCenter(),\n\t\tnewCenter = this._limitCenter(center, this._zoom, new LatLngBounds(bounds));\n\n\t\tif (!center.equals(newCenter)) {\n\t\t\tthis.panTo(newCenter, options);\n\t\t}\n\n\t\tthis._enforcingBounds = false;\n\t\treturn this;\n\t}\n\n\t// @method panInside(latlng: LatLng, options?: padding options): this\n\t// Pans the map the minimum amount to make the `latlng` visible. Use\n\t// padding options to fit the display to more restricted bounds.\n\t// If `latlng` is already within the (optionally padded) display bounds,\n\t// the map will not be panned.\n\tpanInside(latlng, options) {\n\t\toptions ??= {};\n\n\t\tconst paddingTL = new Point(options.paddingTopLeft || options.padding || [0, 0]),\n\t\tpaddingBR = new Point(options.paddingBottomRight || options.padding || [0, 0]),\n\t\tpixelCenter = this.project(this.getCenter()),\n\t\tpixelPoint = this.project(latlng),\n\t\tpixelBounds = this.getPixelBounds(),\n\t\tpaddedBounds = new Bounds([pixelBounds.min.add(paddingTL), pixelBounds.max.subtract(paddingBR)]),\n\t\tpaddedSize = paddedBounds.getSize();\n\n\t\tif (!paddedBounds.contains(pixelPoint)) {\n\t\t\tthis._enforcingBounds = true;\n\t\t\tconst centerOffset = pixelPoint.subtract(paddedBounds.getCenter());\n\t\t\tconst offset = paddedBounds.extend(pixelPoint).getSize().subtract(paddedSize);\n\t\t\tpixelCenter.x += centerOffset.x < 0 ? -offset.x : offset.x;\n\t\t\tpixelCenter.y += centerOffset.y < 0 ? -offset.y : offset.y;\n\t\t\tthis.panTo(this.unproject(pixelCenter), options);\n\t\t\tthis._enforcingBounds = false;\n\t\t}\n\t\treturn this;\n\t}\n\n\t// @method invalidateSize(options: invalidateSize options): this\n\t// Checks if the map container size changed and updates the map if so —\n\t// call it after you've changed the map size dynamically, also animating\n\t// pan by default. If `options.pan` is `false`, panning will not occur.\n\t// If `options.debounceMoveend` is `true`, it will delay `moveend` event so\n\t// that it doesn't happen often even if the method is called many\n\t// times in a row.\n\n\t// @alternative\n\t// @method invalidateSize(animate: Boolean): this\n\t// Checks if the map container size changed and updates the map if so —\n\t// call it after you've changed the map size dynamically, also animating\n\t// pan by default.\n\tinvalidateSize(options) {\n\t\tif (!this._loaded) { return this; }\n\n\t\toptions = {\n\t\t\tanimate: false,\n\t\t\tpan: true,\n\t\t\t...(options === true ? {animate: true} : options)\n\t\t};\n\n\t\tconst oldSize = this.getSize();\n\t\tthis._sizeChanged = true;\n\t\tthis._lastCenter = null;\n\n\t\tconst newSize = this.getSize(),\n\t\toldCenter = oldSize.divideBy(2).round(),\n\t\tnewCenter = newSize.divideBy(2).round(),\n\t\toffset = oldCenter.subtract(newCenter);\n\n\t\tif (!offset.x && !offset.y) { return this; }\n\n\t\tif (options.animate && options.pan) {\n\t\t\tthis.panBy(offset);\n\n\t\t} else {\n\t\t\tif (options.pan) {\n\t\t\t\tthis._rawPanBy(offset);\n\t\t\t}\n\n\t\t\tthis.fire('move');\n\n\t\t\tif (options.debounceMoveend) {\n\t\t\t\tclearTimeout(this._sizeTimer);\n\t\t\t\tthis._sizeTimer = setTimeout(this.fire.bind(this, 'moveend'), 200);\n\t\t\t} else {\n\t\t\t\tthis.fire('moveend');\n\t\t\t}\n\t\t}\n\n\t\t// @section Map state change events\n\t\t// @event resize: ResizeEvent\n\t\t// Fired when the map is resized.\n\t\treturn this.fire('resize', {\n\t\t\toldSize,\n\t\t\tnewSize\n\t\t});\n\t}\n\n\t// @section Methods for modifying map state\n\t// @method stop(): this\n\t// Stops the currently running `panTo` or `flyTo` animation, if any.\n\tstop() {\n\t\tthis.setZoom(this._limitZoom(this._zoom));\n\t\tif (!this.options.zoomSnap) {\n\t\t\tthis.fire('viewreset');\n\t\t}\n\t\treturn this._stop();\n\t}\n\n\t// @section Geolocation methods\n\t// @method locate(options?: Locate options): this\n\t// Tries to locate the user using the Geolocation API, firing a [`locationfound`](#map-locationfound)\n\t// event with location data on success or a [`locationerror`](#map-locationerror) event on failure,\n\t// and optionally sets the map view to the user's location with respect to\n\t// detection accuracy (or to the world view if geolocation failed).\n\t// Note that, if your page doesn't use HTTPS, this method will fail in\n\t// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))\n\t// See `Locate options` for more details.\n\tlocate(options) {\n\n\t\toptions = this._locateOptions = {\n\t\t\ttimeout: 10000,\n\t\t\twatch: false,\n\t\t\t// setView: false\n\t\t\t// maxZoom: <Number>\n\t\t\t// maximumAge: 0\n\t\t\t// enableHighAccuracy: false\n\t\t\t...options\n\t\t};\n\n\t\tif (!('geolocation' in navigator)) {\n\t\t\tthis._handleGeolocationError({\n\t\t\t\tcode: 0,\n\t\t\t\tmessage: 'Geolocation not supported.'\n\t\t\t});\n\t\t\treturn this;\n\t\t}\n\n\t\tconst onResponse = this._handleGeolocationResponse.bind(this),\n\t\tonError = this._handleGeolocationError.bind(this);\n\n\t\tif (options.watch) {\n\t\t\tif (this._locationWatchId !== undefined) {\n\t\t\t\tnavigator.geolocation.clearWatch(this._locationWatchId);\n\t\t\t}\n\t\t\tthis._locationWatchId = navigator.geolocation.watchPosition(onResponse, onError, options);\n\t\t} else {\n\t\t\tnavigator.geolocation.getCurrentPosition(onResponse, onError, options);\n\t\t}\n\t\treturn this;\n\t}\n\n\t// @method stopLocate(): this\n\t// Stops watching location previously initiated by `map.locate({watch: true})`\n\t// and aborts resetting the map view if map.locate was called with\n\t// `{setView: true}`.\n\tstopLocate() {\n\t\tnavigator.geolocation?.clearWatch?.(this._locationWatchId);\n\t\tif (this._locateOptions) {\n\t\t\tthis._locateOptions.setView = false;\n\t\t}\n\t\treturn this;\n\t}\n\n\t_handleGeolocationError(error) {\n\t\tif (!this._container._maplair_id) { return; }\n\n\t\tconst c = error.code,\n\t\tmessage = error.message ||\n\t\t (c === 1 ? 'permission denied' :\n\t\t (c === 2 ? 'position unavailable' : 'timeout'));\n\n\t\tif (this._locateOptions.setView && !this._loaded) {\n\t\t\tthis.fitWorld();\n\t\t}\n\n\t\t// @section Location events\n\t\t// @event locationerror: ErrorEvent\n\t\t// Fired when geolocation (using the [`locate`](#map-locate) method) failed.\n\t\tthis.fire('locationerror', {\n\t\t\tcode: c,\n\t\t\tmessage: `Geolocation error: ${message}.`\n\t\t});\n\t}\n\n\t_handleGeolocationResponse(pos) {\n\t\tif (!this._container._maplair_id) { return; }\n\n\t\tconst lat = pos.coords.latitude,\n\t\tlng = pos.coords.longitude,\n\t\tlatlng = new LatLng(lat, lng),\n\t\tbounds = latlng.toBounds(pos.coords.accuracy * 2),\n\t\toptions = this._locateOptions;\n\n\t\tif (options.setView) {\n\t\t\tconst zoom = this.getBoundsZoom(bounds);\n\t\t\tthis.setView(latlng, options.maxZoom ? Math.min(zoom, options.maxZoom) : zoom);\n\t\t}\n\n\t\tconst data = {\n\t\t\tlatlng,\n\t\t\tbounds,\n\t\t\ttimestamp: pos.timestamp\n\t\t};\n\n\t\tfor (const i in pos.coords) { // do not use Object.keys here to access getters of GeolocationCoordinates\n\t\t\tif (typeof pos.coords[i] === 'number') {\n\t\t\t\tdata[i] = pos.coords[i];\n\t\t\t}\n\t\t}\n\n\t\t// @event locationfound: LocationEvent\n\t\t// Fired when geolocation (using the [`locate`](#map-locate) method)\n\t\t// went successfully.\n\t\tthis.fire('locationfound', data);\n\t}\n\n\t// TODO Appropriate docs section?\n\t// @section Other Methods\n\t// @method addHandler(name: String, HandlerClass: Function): this\n\t// Adds a new `Handler` to the map, given its name and constructor function.\n\taddHandler(name, HandlerClass) {\n\t\tif (!HandlerClass) { return this; }\n\n\t\tconst handler = this[name] = new HandlerClass(this);\n\n\t\tthis._handlers.push(handler);\n\n\t\tif (this.options[name]) {\n\t\t\thandler.enable();\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t// @method remove(): this\n\t// Destroys the map and clears all related event listeners.\n\tremove() {\n\n\t\tthis._initEvents(true);\n\t\tif (this.options.maxBounds) { this.off('moveend', this._panInsideMaxBounds); }\n\n\t\tif (this._containerId !== this._container._maplair_id) {\n\t\t\tthrow new Error('Map container is being reused by another instance');\n\t\t}\n\n\t\tdelete this._container._maplair_id;\n\t\tdelete this._containerId;\n\n\t\tif (this._locationWatchId !== undefined) {\n\t\t\tthis.stopLocate();\n\t\t}\n\n\t\tthis._stop();\n\n\t\tPointerEvents.disablePointerDetection(this._container);\n\t\tthis._mapPane.remove();\n\n\t\tif (this._clearControlPos) {\n\t\t\tthis._clearControlPos();\n\t\t}\n\t\tif (this._resizeRequest) {\n\t\t\tcancelAnimationFrame(this._resizeRequest);\n\t\t\tthis._resizeRequest = null;\n\t\t}\n\n\t\tthis._clearHandlers();\n\n\t\tclearTimeout(this._transitionEndTimer);\n\t\tclearTimeout(this._sizeTimer);\n\n\t\tif (this._loaded) {\n\t\t\t// @section Map state change events\n\t\t\t// @event unload: Event\n\t\t\t// Fired when the map is destroyed with [remove](#map-remove) method.\n\t\t\tthis.fire('unload');\n\t\t}\n\n\t\tthis._destroyAnimProxy();\n\n\t\tfor (const layer of Object.values(this._layers)) {\n\t\t\tlayer.remove();\n\t\t}\n\t\tfor (const pane of Object.values(this._panes)) {\n\t\t\tpane.remove();\n\t\t}\n\n\n\t\tthis._layers = {};\n\t\tthis._panes = {};\n\t\tdelete this._mapPane;\n\t\tdelete this._renderer;\n\n\t\treturn this;\n\t}\n\n\t// @section Other Methods\n\t// @method createPane(name: String, container?: HTMLElement): HTMLElement\n\t// Creates a new [map pane](#map-pane) with the given name if it doesn't exist already,\n\t// then returns it. The pane is created as a child of `container`, or\n\t// as a child of the main map pane if not set.\n\tcreatePane(name, container) {\n\t\tconst className = `maplair-pane${name ? ` maplair-${name.replace('Pane', '')}-pane` : ''}`,\n\t\tpane = DomUtil.create('div', className, container || this._mapPane);\n\n\t\tif (name) {\n\t\t\tthis._panes[name] = pane;\n\t\t}\n\t\treturn pane;\n\t}\n\n\t// @section Methods for Getting Map State\n\n\t// @method getCenter(): LatLng\n\t// Returns the geographical center of the map view\n\tgetCenter() {\n\t\tthis._checkIfLoaded();\n\n\t\tif (this._lastCenter && !this._moved()) {\n\t\t\treturn new LatLng(this._lastCenter);\n\t\t}\n\t\treturn this.layerPointToLatLng(this._getCenterLayerPoint());\n\t}\n\n\t// @method getZoom(): Number\n\t// Returns the current zoom level of the map view\n\tgetZoom() {\n\t\treturn this._zoom;\n\t}\n\n\t// @method getBounds(): LatLngBounds\n\t// Returns the geographical bounds visible in the current map view\n\tgetBounds() {\n\t\tconst bounds = this.getPixelBounds(),\n\t\tsw = this.unproject(bounds.getBottomLeft()),\n\t\tne = this.unproject(bounds.getTopRight());\n\n\t\treturn new LatLngBounds(sw, ne);\n\t}\n\n\t// @method getMinZoom(): Number\n\t// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.\n\tgetMinZoom() {\n\t\treturn this.options.minZoom ?? this._layersMinZoom ?? 0;\n\t}\n\n\t// @method getMaxZoom(): Number\n\t// Returns the maximum zoom level of the map (if set in the `maxZoom` option of the map or of any layers).\n\tgetMaxZoom() {\n\t\treturn this.options.maxZoom ?? this._layersMaxZoom ?? Infinity;\n\t}\n\n\t// @method getBoundsZoom(bounds: LatLngBounds, inside?: Boolean, padding?: Point): Number\n\t// Returns the maximum zoom level on which the given bounds fit to the map\n\t// view in its entirety. If `inside` (optional) is set to `true`, the method\n\t// instead returns the minimum zoom level on which the map view fits into\n\t// the given bounds in its entirety.\n\tgetBoundsZoom(bounds, inside, padding) { // (LatLngBounds[, Boolean, Point]) -> Number\n\t\tbounds = new LatLngBounds(bounds);\n\t\tpadding = new Point(padding ?? [0, 0]);\n\n\t\tlet zoom = this.getZoom() ?? 0;\n\t\tconst min = this.getMinZoom(),\n\t\tmax = this.getMaxZoom(),\n\t\tnw = bounds.getNorthWest(),\n\t\tse = bounds.getSouthEast(),\n\t\tsize = this.getSize().subtract(padding),\n\t\tboundsSize = new Bounds(this.project(se, zoom), this.project(nw, zoom)).getSize(),\n\t\tsnap = this.options.zoomSnap,\n\t\tscalex = size.x / boundsSize.x,\n\t\tscaley = size.y / boundsSize.y,\n\t\tscale = inside ? Math.max(scalex, scaley) : Math.min(scalex, scaley);\n\n\t\tzoom = this.getScaleZoom(scale, zoom);\n\n\t\tif (snap) {\n\t\t\tzoom = Math.round(zoom / (snap / 100)) * (snap / 100); // don't jump if within 1% of a snap level\n\t\t\tzoom = inside ? Math.ceil(zoom / snap) * snap : Math.floor(zoom / snap) * snap;\n\t\t}\n\n\t\treturn Math.max(min, Math.min(max, zoom));\n\t}\n\n\t// @method getSize(): Point\n\t// Returns the current size of the map container (in pixels).\n\tgetSize() {\n\t\tif (!this._size || this._sizeChanged) {\n\t\t\tthis._size = new Point(\n\t\t\t\tthis._container.clientWidth || 0,\n\t\t\t\tthis._container.clientHeight || 0);\n\n\t\t\tthis._sizeChanged = false;\n\t\t}\n\t\treturn new Point(this._size);\n\t}\n\n\t// @method getPixelBounds(center?: LatLng, zoom?: Number): Bounds\n\t// Returns the bounds of the current map view in projected pixel\n\t// coordinates (sometimes useful in layer and overlay implementations).\n\t// If `center` and `zoom` is omitted, the map's current zoom level and center is used.\n\tgetPixelBounds(center, zoom) {\n\t\tconst topLeftPoint = this._getTopLeftPoint(center, zoom);\n\t\treturn new Bounds(topLeftPoint, topLeftPoint.add(this.getSize()));\n\t}\n\n\t// TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to\n\t// the map pane? \"left point of the map layer\" can be confusing, specially\n\t// since there can be negative offsets.\n\t// @method getPixelOrigin(): Point\n\t// Returns the projected pixel coordinates of the top left point of\n\t// the map layer (useful in custom layer and overlay implementations).\n\tgetPixelOrigin() {\n\t\tthis._checkIfLoaded();\n\t\treturn this._pixelOrigin;\n\t}\n\n\t// @method getPixelWorldBounds(zoom?: Number): Bounds\n\t// Returns the world's bounds in pixel coordinates for zoom level `zoom`.\n\t// If `zoom` is omitted, the map's current zoom level is used.\n\tgetPixelWorldBounds(zoom) {\n\t\treturn this.options.crs.getProjectedBounds(zoom ?? this.getZoom());\n\t}\n\n\t// @section Other Methods\n\n\t// @method getPane(pane: String|HTMLElement): HTMLElement\n\t// Returns a [map pane](#map-pane), given its name or its HTML element (its identity).\n\tgetPane(pane) {\n\t\treturn typeof pane === 'string' ? this._panes[pane] : pane;\n\t}\n\n\t// @method getPanes(): Object\n\t// Returns a plain object containing the names of all [panes](#map-pane) as keys and\n\t// the panes as values.\n\tgetPanes() {\n\t\treturn this._panes;\n\t}\n\n\t// @method getContainer: HTMLElement\n\t// Returns the HTML element that contains the map.\n\tgetContainer() {\n\t\treturn this._container;\n\t}\n\n\n\t// @section Conversion Methods\n\n\t// @method getZoomScale(toZoom: Number, fromZoom?: Number): Number\n\t// Returns the scale factor to be applied to a map transition from zoom level\n\t// `fromZoom` to `toZoom`. Used internally to help with zoom animations.\n\tgetZoomScale(toZoom, fromZoom) {\n\t\t// TODO replace with universal implementation after refactoring projections\n\t\tconst crs = this.options.crs;\n\t\tfromZoom ??= this._zoom;\n\t\treturn crs.scale(toZoom) / crs.scale(fromZoom);\n\t}\n\n\t// @method getScaleZoom(scale: Number, fromZoom?: Number): Number\n\t// Returns the zoom level that the map would end up at, if it is at `fromZoom`\n\t// level and everything is scaled by a factor of `scale`. Inverse of\n\t// [`getZoomScale`](#map-getZoomScale).\n\tgetScaleZoom(scale, fromZoom) {\n\t\tconst crs = this.options.crs;\n\t\tfromZoom ??= this._zoom;\n\t\tconst zoom = crs.zoom(scale * crs.scale(fromZoom));\n\t\treturn isNaN(zoom) ? Infinity : zoom;\n\t}\n\n\t// @method project(latlng: LatLng, zoom?: Number): Point\n\t// Projects a geographical coordinate `LatLng` according to the projection\n\t// of the map's CRS, then scales it according to `zoom` and the CRS's\n\t// `Transformation`. The result is pixel coordinate relative to\n\t// the CRS origin.\n\tproject(latlng, zoom) {\n\t\tzoom ??= this._zoom;\n\t\treturn this.options.crs.latLngToPoint(new LatLng(latlng), zoom);\n\t}\n\n\t// @method unproject(point: Point, zoom?: Number): LatLng\n\t// Inverse of [`project`](#map-project).\n\tunproject(point, zoom) {\n\t\tzoom ??= this._zoom;\n\t\treturn this.options.crs.pointToLatLng(new Point(point), zoom);\n\t}\n\n\t// @method layerPointToLatLng(point: Point): LatLng\n\t// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),\n\t// returns the corresponding geographical coordinate (for the current zoom level).\n\tlayerPointToLatLng(point) {\n\t\tconst projectedPoint = new Point(point).add(this.getPixelOrigin());\n\t\treturn this.unproject(projectedPoint);\n\t}\n\n\t// @method latLngToLayerPoint(latlng: LatLng): Point\n\t// Given a geographical coordinate, returns the corresponding pixel coordinate\n\t// relative to the [origin pixel](#map-getpixelorigin).\n\tlatLngToLayerPoint(latlng) {\n\t\tconst projectedPoint = this.project(new LatLng(latlng))._round();\n\t\treturn projectedPoint._subtract(this.getPixelOrigin());\n\t}\n\n\t// @method wrapLatLng(latlng: LatLng): LatLng\n\t// Returns a `LatLng` where `lat` and `lng` has been wrapped according to the\n\t// map's CRS's `wrapLat` and `wrapLng` properties, if they are outside the\n\t// CRS's bounds.\n\t// By default this means longitude is wrapped around the dateline so its\n\t// value is between -180 and +180 degrees.\n\twrapLatLng(latlng) {\n\t\treturn this.options.crs.wrapLatLng(new LatLng(latlng));\n\t}\n\n\t// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds\n\t// Returns a `LatLngBounds` with the same size as the given one, ensuring that\n\t// its center is within the CRS's bounds.\n\t// By default this means the center longitude is wrapped around the dateline so its\n\t// value is between -180 and +180 degrees, and the majority of the bounds\n\t// overlaps the CRS's bounds.\n\twrapLatLngBounds(bounds) {\n\t\treturn this.options.crs.wrapLatLngBounds(new LatLngBounds(bounds));\n\t}\n\n\t// @method distance(latlng1: LatLng, latlng2: LatLng): Number\n\t// Returns the distance between two geographical coordinates according to\n\t// the map's CRS. By default this measures distance in meters.\n\tdistance(latlng1, latlng2) {\n\t\treturn this.options.crs.distance(new LatLng(latlng1), new LatLng(latlng2));\n\t}\n\n\t// @method containerPointToLayerPoint(point: Point): Point\n\t// Given a pixel coordinate relative to the map container, returns the corresponding\n\t// pixel coordinate relative to the [origin pixel](#map-getpixelorigin).\n\tcontainerPointToLayerPoint(point) { // (Point)\n\t\treturn new Point(point).subtract(this._getMapPanePos());\n\t}\n\n\t// @method layerPointToContainerPoint(point: Point): Point\n\t// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),\n\t// returns the corresponding pixel coordinate relative to the map container.\n\tlayerPointToContainerPoint(point) { // (Point)\n\t\treturn new Point(point).add(this._getMapPanePos());\n\t}\n\n\t// @method containerPointToLatLng(point: Point): LatLng\n\t// Given a pixel coordinate relative to the map container, returns\n\t// the corresponding geographical coordinate (for the current zoom level).\n\tcontainerPointToLatLng(point) {\n\t\tconst layerPoint = this.containerPointToLayerPoint(new Point(point));\n\t\treturn this.layerPointToLatLng(layerPoint);\n\t}\n\n\t// @method latLngToContainerPoint(latlng: LatLng): Point\n\t// Given a geographical coordinate, returns the corresponding pixel coordinate\n\t// relative to the map container.\n\tlatLngToContainerPoint(latlng) {\n\t\treturn this.layerPointToContainerPoint(this.latLngToLayerPoint(new LatLng(latlng)));\n\t}\n\n\t// @method pointerEventToContainerPoint(ev: PointerEvent): Point\n\t// Given a PointerEvent object, returns the pixel coordinate relative to the\n\t// map container where the event took place.\n\tpointerEventToContainerPoint(e) {\n\t\treturn DomEvent.getPointerPosition(e, this._container);\n\t}\n\n\t// @method pointerEventToLayerPoint(ev: PointerEvent): Point\n\t// Given a PointerEvent object, returns the pixel coordinate relative to\n\t// the [origin pixel](#map-getpixelorigin) where the event took place.\n\tpointerEventToLayerPoint(e) {\n\t\treturn this.containerPointToLayerPoint(this.pointerEventToContainerPoint(e));\n\t}\n\n\t// @method pointerEventToLatLng(ev: PointerEvent): LatLng\n\t// Given a PointerEvent object, returns geographical coordinate where the\n\t// event took place.\n\tpointerEventToLatLng(e) { // (PointerEvent)\n\t\treturn this.layerPointToLatLng(this.pointerEventToLayerPoint(e));\n\t}\n\n\n\t// map initialization methods\n\n\t_initContainer(id) {\n\t\tconst container = this._container = DomUtil.get(id);\n\n\t\tif (!container) {\n\t\t\tthrow new Error('Map container not found.');\n\t\t} else if (container._maplair_id) {\n\t\t\tthrow new Error('Map container is already initialized.');\n\t\t}\n\n\t\tPointerEvents.enablePointerDetection(container);\n\t\tDomEvent.on(container, 'scroll', this._onScroll, this);\n\t\tthis._containerId = Util.stamp(container);\n\n\t}\n\n\t_initLayout() {\n\t\tconst container = this._container;\n\n\t\tthis._fadeAnimated = this.options.fadeAnimation;\n\n\t\tconst classes = ['maplair-container', 'maplair-touch'];\n\n\t\tif (Browser.retina) { classes.push('maplair-retina'); }\n\t\tif (Browser.safari) { classes.push('maplair-safari'); }\n\t\tif (this._fadeAnimated) { classes.push('maplair-fade-anim'); }\n\n\t\tcontainer.classList.add(...classes);\n\n\t\tconst {position} = getComputedStyle(container);\n\n\t\tif (position !== 'absolute' && position !== 'relative' && position !== 'fixed' && position !== 'sticky') {\n\t\t\tcontainer.style.position = 'relative';\n\t\t}\n\n\t\tthis._initPanes();\n\n\t\tif (this._initControlPos) {\n\t\t\tthis._initControlPos();\n\t\t}\n\t}\n\n\t_initPanes() {\n\t\tconst panes = this._panes = {};\n\t\tthis._paneRenderers = {};\n\n\t\t// @section\n\t\t//\n\t\t// Panes are DOM elements used to control the ordering of layers on the map. You\n\t\t// can access panes with [`map.getPane`](#map-getpane) or\n\t\t// [`map.getPanes`](#map-getpanes) methods. New panes can be created with the\n\t\t// [`map.createPane`](#map-createpane) method.\n\t\t//\n\t\t// Every map has the following default panes that differ only in zIndex.\n\t\t//\n\t\t// @pane mapPane: HTMLElement = 'auto'\n\t\t// Pane that contains all other map panes\n\n\t\tthis._mapPane = this.createPane('mapPane', this._container);\n\t\tDomUtil.setPosition(this._mapPane, new Point(0, 0));\n\n\t\t// @pane tilePane: HTMLElement = 200\n\t\t// Pane for `GridLayer`s and `TileLayer`s\n\t\tthis.createPane('tilePane');\n\t\t// @pane overlayPane: HTMLElement = 400\n\t\t// Pane for vectors (`Path`s, like `Polyline`s and `Polygon`s), `ImageOverlay`s and `VideoOverlay`s\n\t\tthis.createPane('overlayPane');\n\t\t// @pane shadowPane: HTMLElement = 500\n\t\t// Pane for overlay shadows (e.g. `Marker` shadows)\n\t\tthis.createPane('shadowPane');\n\t\t// @pane markerPane: HTMLElement = 600\n\t\t// Pane for `Icon`s of `Marker`s\n\t\tthis.createPane('markerPane');\n\t\t// @pane tooltipPane: HTMLElement = 650\n\t\t// Pane for `Tooltip`s.\n\t\tthis.createPane('tooltipPane');\n\t\t// @pane popupPane: HTMLElement = 700\n\t\t// Pane for `Popup`s.\n\t\tthis.createPane('popupPane');\n\n\t\tif (!this.options.markerZoomAnimation) {\n\t\t\tpanes.markerPane.classList.add('maplair-zoom-hide');\n\t\t\tpanes.shadowPane.classList.add('maplair-zoom-hide');\n\t\t}\n\t}\n\n\n\t// private methods that modify map state\n\n\t// @section Map state change events\n\t_resetView(center, zoom, noMoveStart) {\n\t\tDomUtil.setPosition(this._mapPane, new Point(0, 0));\n\n\t\tconst loading = !this._loaded;\n\t\tthis._loaded = true;\n\t\tzoom = this._limitZoom(zoom);\n\n\t\tthis.fire('viewprereset');\n\n\t\tconst zoomChanged = this._zoom !== zoom;\n\t\tthis\n\t\t\t._moveStart(zoomChanged, noMoveStart)\n\t\t\t._move(center, zoom)\n\t\t\t._moveEnd(zoomChanged);\n\n\t\t// @event viewreset: Event\n\t\t// Fired when the map needs to redraw its content (this usually happens\n\t\t// on map zoom or load). Very useful for creating custom overlays.\n\t\tthis.fire('viewreset');\n\n\t\t// @event load: Event\n\t\t// Fired when the map is initialized (when its center and zoom are set\n\t\t// for the first time).\n\t\tif (loading) {\n\t\t\tthis.fire('load');\n\t\t}\n\t}\n\n\t_moveStart(zoomChanged, noMoveStart) {\n\t\t// @event zoomstart: Event\n\t\t// Fired when the map zoom is about to change (e.g. before zoom animation).\n\t\t// @event movestart: Event\n\t\t// Fired when the view of the map starts changing (e.g. user starts dragging the map).\n\t\tif (zoomChanged) {\n\t\t\tthis.fire('zoomstart');\n\t\t}\n\t\tif (!noMoveStart) {\n\t\t\tthis.fire('movestart');\n\t\t}\n\t\treturn this;\n\t}\n\n\t_move(center, zoom, data, suppressEvent) {\n\t\tif (zoom === undefined) {\n\t\t\tzoom = this._zoom;\n\t\t}\n\t\tconst zoomChanged = this._zoom !== zoom;\n\n\t\tthis._zoom = zoom;\n\t\tthis._lastCenter = center;\n\t\tthis._pixelOrigin = this._getNewPixelOrigin(center);\n\n\t\tif (!suppressEvent) {\n\t\t\t// @event zoom: Event\n\t\t\t// Fired repeatedly during any change in zoom level,\n\t\t\t// including zoom and fly animations.\n\t\t\tif (zoomChanged || (data?.pinch)) {\t// Always fire 'zoom' if pinching because #3530\n\t\t\t\tthis.fire('zoom', data);\n\t\t\t}\n\n\t\t\t// @event move: Event\n\t\t\t// Fired repeatedly during any movement of the map,\n\t\t\t// including pan and fly animations.\n\t\t\tthis.fire('move', data);\n\t\t} else if (data?.pinch) {\t// Always fire 'zoom' if pinching because #3530\n\t\t\tthis.fire('zoom', data);\n\t\t}\n\t\treturn this;\n\t}\n\n\t_moveEnd(zoomChanged) {\n\t\t// @event zoomend: Event\n\t\t// Fired when the map zoom changed, after any animations.\n\t\tif (zoomChanged) {\n\t\t\tthis.fire('zoomend');\n\t\t}\n\n\t\t// @event moveend: Event\n\t\t// Fired when the center of the map stops changing\n\t\t// (e.g. user stopped dragging the map or after non-centered zoom).\n\t\treturn this.fire('moveend');\n\t}\n\n\t_stop() {\n\t\tcancelAnimationFrame(this._flyToFrame);\n\t\tcancelAnimationFrame(this._zoomAnimFrame);\n\t\tthis._panAnim?.stop();\n\t\treturn this;\n\t}\n\n\t_rawPanBy(offset) {\n\t\tDomUtil.setPosition(this._mapPane, this._getMapPanePos().subtract(offset));\n\t}\n\n\t_getZoomSpan() {\n\t\treturn this.getMaxZoom() - this.getMinZoom();\n\t}\n\n\t_panInsideMaxBounds() {\n\t\tif (!this._enforcingBounds) {\n\t\t\tthis.panInsideBounds(this.options.maxBounds);\n\t\t}\n\t}\n\n\t_checkIfLoaded() {\n\t\tif (!this._loaded) {\n\t\t\tthrow new Error('Set map center and zoom first.');\n\t\t}\n\t}\n\n\t// DOM event handling\n\n\t// @section Interaction events\n\t_initEvents(remove) {\n\t\tthis._targets = {};\n\t\tthis._targets[Util.stamp(this._container)] = this;\n\n\t\tconst onOff = remove ? DomEvent.off : DomEvent.on;\n\n\t\t// @event click: PointerEvent\n\t\t// Fired when the user clicks (or taps) the map.\n\t\t// @event dblclick: PointerEvent\n\t\t// Fired when the user double-clicks (or double-taps) the map.\n\t\t// @event pointerdown: PointerEvent\n\t\t// Fired when the user pushes the pointer on the map.\n\t\t// @event pointerup: PointerEvent\n\t\t// Fired when the user releases the pointer on the map.\n\t\t// @event pointerover: PointerEvent\n\t\t// Fired when the pointer enters the map.\n\t\t// @event pointerout: PointerEvent\n\t\t// Fired when the pointer leaves the map.\n\t\t// @event pointermove: PointerEvent\n\t\t// Fired while the pointer moves over the map.\n\t\t// @event contextmenu: PointerEvent\n\t\t// Fired when the user pushes the right mouse button on the map, prevents\n\t\t// default browser context menu from showing if there are listeners on\n\t\t// this event. Also fired on mobile when the user holds a single touch\n\t\t// for a second (also called long press).\n\t\t// @event keypress: KeyboardEvent\n\t\t// Fired when the user presses a key from the keyboard that produces a character value while the map is focused.\n\t\t// @event keydown: KeyboardEvent\n\t\t// Fired when the user presses a key from the keyboard while the map is focused. Unlike the `keypress` event,\n\t\t// the `keydown` event is fired for keys that produce a character value and for keys\n\t\t// that do not produce a character value.\n\t\t// @event keyup: KeyboardEvent\n\t\t// Fired when the user releases a key from the keyboard while the map is focused.\n\t\tonOff(this._container, 'click dblclick pointerdown pointerup ' +\n\t\t\t'pointerover pointerout pointermove contextmenu keypress keydown keyup', this._handleDOMEvent, this);\n\n\t\tif (this.options.trackResize) {\n\t\t\tif (!remove) {\n\t\t\t\tif (!this._resizeObserver) {\n\t\t\t\t\tthis._resizeObserver = new ResizeObserver(this._onResize.bind(this));\n\t\t\t\t}\n\t\t\t\tthis._resizeObserver.observe(this._container);\n\t\t\t} else {\n\t\t\t\tthis._resizeObserver.disconnect();\n\t\t\t}\n\t\t}\n\n\t\tif (this.options.transform3DLimit) {\n\t\t\t(remove ? this.off : this.on).call(this, 'moveend', this._onMoveEnd);\n\t\t}\n\t}\n\n\t_onResize() {\n\t\tcancelAnimationFrame(this._resizeRequest);\n\t\tthis._resizeRequest = requestAnimationFrame(() => { this.invalidateSize({debounceMoveend: true}); });\n\t}\n\n\t_onScroll() {\n\t\tthis._container.scrollTop = 0;\n\t\tthis._container.scrollLeft = 0;\n\t}\n\n\t_onMoveEnd() {\n\t\tconst pos = this._getMapPanePos();\n\t\tif (Math.max(Math.abs(pos.x), Math.abs(pos.y)) >= this.options.transform3DLimit) {\n\t\t\t// https://bugzilla.mozilla.org/show_bug.cgi?id=1203873 but Webkit also have\n\t\t\t// a pixel offset on very high values, see: https://jsfiddle.net/dg6r5hhb/\n\t\t\tthis._resetView(this.getCenter(), this.getZoom());\n\t\t}\n\t}\n\n\t_findEventTargets(e, type) {\n\t\tlet targets = [],\n\t\ttarget,\n\t\tsrc = e.target || e.srcElement,\n\t\tdragging = false;\n\t\tconst isHover = type === 'pointerout' || type === 'pointerover';\n\n\t\twhile (src) {\n\t\t\ttarget = this._targets[Util.stamp(src)];\n\t\t\tif (target && (type === 'click' || type === 'preclick') && this._draggableMoved(target)) {\n\t\t\t\t// Prevent firing click after you just dragged an object.\n\t\t\t\tdragging = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (target && target.listens(type, true)) {\n\t\t\t\tif (isHover && !DomEvent.isExternalTarget(src, e)) { break; }\n\t\t\t\ttargets.push(target);\n\t\t\t\tif (isHover) { break; }\n\t\t\t}\n\t\t\tif (src === this._container) { break; }\n\t\t\tsrc = src.parentNode;\n\t\t}\n\t\tif (!targets.length && !dragging && !isHover && this.listens(type, true)) {\n\t\t\ttargets = [this];\n\t\t}\n\t\treturn targets;\n\t}\n\n\t_isClickDisabled(el) {\n\t\twhile (el && el !== this._container) {\n\t\t\tif (el['_maplair_disable_click'] || !el.parentNode) { return true; }\n\t\t\tel = el.parentNode;\n\t\t}\n\t}\n\n\t_handleDOMEvent(e) {\n\t\tconst el = e.target ?? e.srcElement;\n\t\tif (!this._loaded || el['_maplair_disable_events'] || e.type === 'click' && this._isClickDisabled(el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst type = e.type;\n\n\t\tif (type === 'pointerdown') {\n\t\t\t// prevents outline when clicking on keyboard-focusable element\n\t\t\tDomUtil.preventOutline(el);\n\t\t}\n\n\t\tthis._fireDOMEvent(e, type);\n\t};\n\n\tstatic _pointerEvents = ['click', 'dblclick', 'pointerover', 'pointerout', 'contextmenu'];\n\n\t_fireDOMEvent(e, type, canvasTargets) {\n\n\t\tif (type === 'click') {\n\t\t\t// Fire a synthetic 'preclick' event which propagates up (mainly for closing popups).\n\t\t\t// @event preclick: PointerEvent\n\t\t\t// Fired before pointer click on the map (sometimes useful when you\n\t\t\t// want something to happen on click before any existing click\n\t\t\t// handlers start running).\n\t\t\tthis._fireDOMEvent(e, 'preclick', canvasTargets);\n\t\t}\n\n\t\t// Find the layer the event is propagating from and its parents.\n\t\tlet targets = this._findEventTargets(e, type);\n\n\t\tif (canvasTargets) {\n\t\t\t// pick only targets with listeners\n\t\t\tconst filtered = canvasTargets.filter(t => t.listens(type, true));\n\t\t\ttargets = [...filtered, ...targets];\n\t\t}\n\n\t\tif (!targets.length) { return; }\n\n\t\tif (type === 'contextmenu') {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tconst target = targets[0];\n\t\tconst data = {\n\t\t\toriginalEvent: e\n\t\t};\n\n\t\tif (e.type !== 'keypress' && e.type !== 'keydown' && e.type !== 'keyup') {\n\t\t\tconst isMarker = target.getLatLng && (!target._pxRadius || target._pxRadius <= 10);\n\t\t\tdata.containerPoint = isMarker ?\n\t\t\t\tthis.latLngToContainerPoint(target.getLatLng()) : this.pointerEventToContainerPoint(e);\n\t\t\tdata.layerPoint = this.containerPointToLayerPoint(data.containerPoint);\n\t\t\tdata.latlng = isMarker ? target.getLatLng() : this.layerPointToLatLng(data.layerPoint);\n\t\t}\n\n\t\tfor (const t of targets) {\n\t\t\tt.fire(type, data, true);\n\t\t\tif (data.originalEvent._stopped ||\n\t\t\t\t(t.options.bubblingPointerEvents === false && MaplairMap._pointerEvents.includes(type))) { return; }\n\t\t}\n\t}\n\n\t_draggableMoved(obj) {\n\t\tobj = obj.dragging?.enabled() ? obj : this;\n\t\treturn obj.dragging?.moved() || this.boxZoom?.moved();\n\t}\n\n\t_clearHandlers() {\n\t\tfor (const handler of this._handlers) {\n\t\t\thandler.disable();\n\t\t}\n\t}\n\n\t// @section Other Methods\n\n\t// @method whenReady(fn: Function, context?: Object): this\n\t// Runs the given function `fn` when the map gets initialized with\n\t// a view (center and zoom) and at least one layer, or immediately\n\t// if it's already initialized, optionally passing a function context.\n\twhenReady(callback, context) {\n\t\tif (this._loaded) {\n\t\t\tcallback.call(context || this, {target: this});\n\t\t} else {\n\t\t\tthis.on('load', callback, context);\n\t\t}\n\t\treturn this;\n\t}\n\n\n\t// private methods for getting map state\n\n\t_getMapPanePos() {\n\t\treturn DomUtil.getPosition(this._mapPane);\n\t}\n\n\t_moved() {\n\t\tconst pos = this._getMapPanePos();\n\t\treturn pos && !pos.equals([0, 0]);\n\t}\n\n\t_getTopLeftPoint(center, zoom) {\n\t\tconst pixelOrigin = center && zoom !== undefined ?\n\t\t\tthis._getNewPixelOrigin(center, zoom) :\n\t\t\tthis.getPixelOrigin();\n\t\treturn pixelOrigin.subtract(this._getMapPanePos());\n\t}\n\n\t_getNewPixelOrigin(center, zoom) {\n\t\tconst viewHalf = this.getSize()._divideBy(2);\n\t\treturn this.project(center, zoom)._subtract(viewHalf)._add(this._getMapPanePos())._round();\n\t}\n\n\t_latLngToNewLayerPoint(latlng, zoom, center) {\n\t\tconst topLeft = this._getNewPixelOrigin(center, zoom);\n\t\treturn this.project(latlng, zoom)._subtract(topLeft);\n\t}\n\n\t_latLngBoundsToNewLayerBounds(latLngBounds, zoom, center) {\n\t\tconst topLeft = this._getNewPixelOrigin(center, zoom);\n\t\treturn new Bounds([\n\t\t\tthis.project(latLngBounds.getSouthWest(), zoom)._subtract(topLeft),\n\t\t\tthis.project(latLngBounds.getNorthWest(), zoom)._subtract(topLeft),\n\t\t\tthis.project(latLngBounds.getSouthEast(), zoom)._subtract(topLeft),\n\t\t\tthis.project(latLngBounds.getNorthEast(), zoom)._subtract(topLeft)\n\t\t]);\n\t}\n\n\t// layer point of the current center\n\t_getCenterLayerPoint() {\n\t\treturn this.containerPointToLayerPoint(this.getSize()._divideBy(2));\n\t}\n\n\t// offset of the specified place to the current center in pixels\n\t_getCenterOffset(latlng) {\n\t\treturn this.latLngToLayerPoint(latlng).subtract(this._getCenterLayerPoint());\n\t}\n\n\t// adjust center for view to get inside bounds\n\t_limitCenter(center, zoom, bounds) {\n\n\t\tif (!bounds) { return center; }\n\n\t\tconst centerPoint = this.project(center, zoom),\n\t\tviewHalf = this.getSize().divideBy(2),\n\t\tviewBounds = new Bounds(centerPoint.subtract(viewHalf), centerPoint.add(viewHalf)),\n\t\toffset = this._getBoundsOffset(viewBounds, bounds, zoom);\n\n\t\t// If offset is less than a pixel, ignore.\n\t\t// This prevents unstable projections from getting into\n\t\t// an infinite loop of tiny offsets.\n\t\tif (Math.abs(offset.x) <= 1 && Math.abs(offset.y) <= 1) {\n\t\t\treturn center;\n\t\t}\n\n\t\treturn this.unproject(centerPoint.add(offset), zoom);\n\t}\n\n\t// adjust offset for view to get inside bounds\n\t_limitOffset(offset, bounds) {\n\t\tif (!bounds) { return offset; }\n\n\t\tconst viewBounds = this.getPixelBounds(),\n\t\tnewBounds = new Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));\n\n\t\treturn offset.add(this._getBoundsOffset(newBounds, bounds));\n\t}\n\n\t// returns offset needed for pxBounds to get inside maxBounds at a specified zoom\n\t_getBoundsOffset(pxBounds, maxBounds, zoom) {\n\t\tconst projectedMaxBounds = new Bounds(\n\t\t\tthis.project(maxBounds.getNorthEast(), zoom),\n\t\t\tthis.project(maxBounds.getSouthWest(), zoom)\n\t\t),\n\t\tminOffset = projectedMaxBounds.min.subtract(pxBounds.min),\n\t\tmaxOffset = projectedMaxBounds.max.subtract(pxBounds.max),\n\n\t\tdx = this._rebound(minOffset.x, -maxOffset.x),\n\t\tdy = this._rebound(minOffset.y, -maxOffset.y);\n\n\t\treturn new Point(dx, dy);\n\t}\n\n\t_rebound(left, right) {\n\t\treturn left + right > 0 ?\n\t\t\tMath.round(left - right) / 2 :\n\t\t\tMath.max(0, Math.ceil(left)) - Math.max(0, Math.floor(right));\n\t}\n\n\t_limitZoom(zoom) {\n\t\tconst min = this.getMinZoom(),\n\t\tmax = this.getMaxZoom(),\n\t\tsnap = this.options.zoomSnap;\n\t\tif (snap) {\n\t\t\tzoom = Math.round(zoom / snap) * snap;\n\t\t}\n\t\treturn Math.max(min, Math.min(max, zoom));\n\t}\n\n\t_onPanTransitionStep() {\n\t\tthis.fire('move');\n\t}\n\n\t_onPanTransitionEnd() {\n\t\tthis._mapPane.classList.remove('maplair-pan-anim');\n\t\tthis.fire('moveend');\n\t}\n\n\t_tryAnimatedPan(center, options) {\n\t\t// difference between the new and current centers in pixels\n\t\tconst offset = this._getCenterOffset(center)._trunc();\n\n\t\t// don't animate too far unless animate: true specified in options\n\t\tif (options?.animate !== true && !this.getSize().contains(offset)) { return false; }\n\n\t\tthis.panBy(offset, options);\n\n\t\treturn true;\n\t}\n\n\t_createAnimProxy() {\n\t\tthis._proxy = DomUtil.create('div', 'maplair-proxy maplair-zoom-animated');\n\t\tthis._panes.mapPane.appendChild(this._proxy);\n\n\t\tthis.on('zoomanim', this._animateProxyZoom, this);\n\t\tthis.on('load moveend', this._animMoveEnd, this);\n\n\t\tDomEvent.on(this._proxy, 'transitionend', this._catchTransitionEnd, this);\n\t}\n\n\t_animateProxyZoom(e) {\n\t\tconst transform = this._proxy.style.transform;\n\n\t\tDomUtil.setTransform(\n\t\t\tthis._proxy,\n\t\t\tthis.project(e.center, e.zoom),\n\t\t\tthis.getZoomScale(e.zoom, 1),\n\t\t);\n\n\t\t// workaround for case when transform is the same and so transitionend event is not fired\n\t\tif (transform === this._proxy.style.transform && this._animatingZoom) {\n\t\t\tthis._onZoomTransitionEnd();\n\t\t}\n\t}\n\n\t_animMoveEnd() {\n\t\tconst c = this.getCenter();\n\t\tconst z = this.getZoom();\n\n\n\n\t\tDomUtil.setTransform(\n\t\t\tthis._proxy,\n\t\t\tthis.project(c, z),\n\t\t\tthis.getZoomScale(z, 1),\n\t\t);\n\t}\n\n\t_destroyAnimProxy() {\n\t\t// Just make sure this method is safe to call from anywhere, without knowledge\n\t\t// of whether the animation proxy was created in the first place.\n\t\tif (this._proxy) {\n\t\t\tDomEvent.off(this._proxy, 'transitionend', this._catchTransitionEnd, this);\n\n\t\t\tthis._proxy.remove();\n\t\t\tthis.off('zoomanim', this._animateProxyZoom, this);\n\t\t\tthis.off('load moveend', this._animMoveEnd, this);\n\n\t\t\tdelete this._proxy;\n\t\t}\n\t}\n\n\t_catchTransitionEnd(e) {\n\t\tif (this._animatingZoom && e.propertyName.includes('transform')) {\n\t\t\tthis._onZoomTransitionEnd();\n\t\t}\n\t}\n\n\t_nothingToAnimate() {\n\t\treturn !this._container.getElementsByClassName('maplair-zoom-animated').length;\n\t}\n\n\t_tryAnimatedZoom(center, zoom, options) {\n\n\t\tif (this._animatingZoom) { return true; }\n\n\t\toptions ??= {};\n\n\t\t// don't animate if disabled, not supported or zoom difference is too large\n\t\tif (!this._zoomAnimated || options.animate === false || this._nothingToAnimate() ||\n\t\t Math.abs(zoom - this._zoom) > this.options.zoomAnimationThreshold) { return false; }\n\n\t\t// offset is the pixel coords of the zoom origin relative to the current center\n\t\tconst scale = this.getZoomScale(zoom),\n\t\toffset = this._getCenterOffset(center)._divideBy(1 - 1 / scale);\n\n\t\t// don't animate if the zoom origin isn't within one screen from the current center, unless forced\n\t\tif (options.animate !== true && !this.getSize().contains(offset)) { return false; }\n\n\t\tthis._zoomAnimFrame = requestAnimationFrame(() => {\n\t\t\tthis._zoomAnimFrame = null;\n\t\t\tthis\n\t\t\t\t._moveStart(true, options.noMoveStart ?? false)\n\t\t\t\t._animateZoom(center, zoom, true);\n\t\t});\n\n\t\treturn true;\n\t}\n\n\t_animateZoom(center, zoom, startAnim, noUpdate) {\n\t\tif (!this._mapPane) { return; }\n\n\t\tif (startAnim) {\n\t\t\tthis._animatingZoom = true;\n\n\t\t\t// remember what center/zoom to set after animation\n\t\t\tthis._animateToCenter = center;\n\t\t\tthis._animateToZoom = zoom;\n\n\t\t\tthis._mapPane.classList.add('maplair-zoom-anim');\n\t\t}\n\n\t\t// @section Other Events\n\t\t// @event zoomanim: ZoomAnimEvent\n\t\t// Fired at least once per zoom animation. For continuous zoom, like pinch zooming, fired once per frame during zoom.\n\t\tthis.fire('zoomanim', {\n\t\t\tcenter,\n\t\t\tzoom,\n\t\t\tnoUpdate\n\t\t});\n\n\t\tif (!this._tempFireZoomEvent) {\n\t\t\tthis._tempFireZoomEvent = this._zoom !== this._animateToZoom;\n\t\t}\n\n\t\tthis._move(this._animateToCenter, this._animateToZoom, undefined, true);\n\n\t\t// Work around webkit not firing 'transitionend', see https://github.com/Leaflet/Leaflet/issues/3689, 2693\n\t\tthis._transitionEndTimer = setTimeout(this._onZoomTransitionEnd.bind(this), 250);\n\t}\n\n\t_onZoomTransitionEnd() {\n\t\tif (!this._animatingZoom) { return; }\n\n\t\tthis._mapPane?.classList.remove('maplair-zoom-anim');\n\n\t\tthis._animatingZoom = false;\n\n\t\tthis._move(this._animateToCenter, this._animateToZoom, undefined, true);\n\n\t\tif (this._tempFireZoomEvent) {\n\t\t\tthis.fire('zoom');\n\t\t}\n\t\tdelete this._tempFireZoomEvent;\n\n\t\tthis.fire('move');\n\n\t\tthis._moveEnd(true);\n\t}\n}\n\n// The default features (layers, popups, tooltips, vector renderers, controls\n// and interaction handlers) come with every map: they are registered here\n// rather than by the entry module, so that they are included whenever\n// `MaplairMap` is, while bundlers can still drop other features (e.g. GeoJSON,\n// the layers and scale controls) when an application doesn't use them.\n//\n// Possible tree-shaking optimization: popups, tooltips and the vector renderers\n// (DivOverlay, Popup, Tooltip, RendererSupport; about 25 kB of a minimal map's\n// 100 kB minified) could become optional by registering themselves when their\n// module is imported (without importing this module, to avoid circular imports)\n// instead of here. But then `layer.bindPopup()`/`bindTooltip()` and the map's\n// popup/tooltip methods would only exist in production bundles of apps that\n// actually use the `Popup`/`Tooltip` classes (bundlers drop an unused\n// `import {Tooltip}`), while they would always work in development builds.\nfor (const feature of [\n\tAttributionControl,\n\tControl,\n\tDivOverlay,\n\tLayer,\n\tBoxZoomHandler,\n\tDoubleClickZoomHandler,\n\tDragHandler,\n\tKeyboardHandler,\n\tPinchZoomHandler,\n\tScrollWheelZoomHandler,\n\tTapHoldHandler,\n\tPopup,\n\tTooltip,\n\tRendererSupport,\n\tZoomControl\n]) {\n\tfeature.register(MaplairMap);\n}\n\nexport const Map = MaplairMap;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA,IAAa,aAAb,MAAa,mBAAmB,QAAQ;CAEvC;EACC,KAAK,kBAAkB;GAKtB,KAAK;GAIL,QAAQ,KAAA;GAIR,MAAM,KAA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CACA;CACAQ;CACA;AACD,GACC,QAAQ,SAAS,UAAU;AAG5B,MAAa,MAAM"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { off, on, stop } from "../../dom/DomEvent.js";
|
|
2
|
+
import { create, disableImageDrag, disableTextSelection, enableImageDrag, enableTextSelection, setPosition } from "../../dom/DomUtil.js";
|
|
3
|
+
import { Handler } from "../../core/Handler.js";
|
|
4
|
+
import { Bounds } from "../../geometry/Bounds.js";
|
|
5
|
+
import { LatLngBounds } from "../../geo/LatLngBounds.js";
|
|
6
|
+
//#region src/map/handler/BoxZoomHandler.js
|
|
7
|
+
var BoxZoomHandler = class BoxZoomHandler extends Handler {
|
|
8
|
+
constructor(map) {
|
|
9
|
+
super(map);
|
|
10
|
+
this._container = map._container;
|
|
11
|
+
this._pane = map._panes.overlayPane;
|
|
12
|
+
this._resetStateTimeout = 0;
|
|
13
|
+
map.on("unload", this._destroy, this);
|
|
14
|
+
this.callInitHooks(BoxZoomHandler);
|
|
15
|
+
}
|
|
16
|
+
addHooks() {
|
|
17
|
+
on(this._container, "pointerdown", this._onPointerDown, this);
|
|
18
|
+
}
|
|
19
|
+
removeHooks() {
|
|
20
|
+
off(this._container, "pointerdown", this._onPointerDown, this);
|
|
21
|
+
}
|
|
22
|
+
moved() {
|
|
23
|
+
return this._moved;
|
|
24
|
+
}
|
|
25
|
+
_destroy() {
|
|
26
|
+
this._pane.remove();
|
|
27
|
+
delete this._pane;
|
|
28
|
+
}
|
|
29
|
+
_resetState() {
|
|
30
|
+
this._resetStateTimeout = 0;
|
|
31
|
+
this._moved = false;
|
|
32
|
+
}
|
|
33
|
+
_clearDeferredResetState() {
|
|
34
|
+
if (this._resetStateTimeout !== 0) {
|
|
35
|
+
clearTimeout(this._resetStateTimeout);
|
|
36
|
+
this._resetStateTimeout = 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
_onPointerDown(e) {
|
|
40
|
+
if (!e.shiftKey || e.button !== 0) return false;
|
|
41
|
+
this._clearDeferredResetState();
|
|
42
|
+
this._resetState();
|
|
43
|
+
disableTextSelection();
|
|
44
|
+
disableImageDrag();
|
|
45
|
+
this._startPoint = this._map.pointerEventToContainerPoint(e);
|
|
46
|
+
on(this._container, {
|
|
47
|
+
contextmenu: stop,
|
|
48
|
+
pointermove: this._onPointerMove,
|
|
49
|
+
pointerup: this._onPointerUp,
|
|
50
|
+
keydown: this._onKeyDown
|
|
51
|
+
}, this);
|
|
52
|
+
on(document, "keydown", this._onKeyDown, this);
|
|
53
|
+
}
|
|
54
|
+
_onPointerMove(e) {
|
|
55
|
+
if (!this._moved) {
|
|
56
|
+
this._moved = true;
|
|
57
|
+
this._box = create("div", "maplair-zoom-box", this._container);
|
|
58
|
+
this._container.classList.add("maplair-crosshair");
|
|
59
|
+
this._map.fire("boxzoomstart");
|
|
60
|
+
}
|
|
61
|
+
this._point = this._map.pointerEventToContainerPoint(e);
|
|
62
|
+
const bounds = new Bounds(this._point, this._startPoint), size = bounds.getSize();
|
|
63
|
+
setPosition(this._box, bounds.min);
|
|
64
|
+
this._box.style.width = `${size.x}px`;
|
|
65
|
+
this._box.style.height = `${size.y}px`;
|
|
66
|
+
}
|
|
67
|
+
_finish() {
|
|
68
|
+
if (this._moved) {
|
|
69
|
+
this._box.remove();
|
|
70
|
+
this._container.classList.remove("maplair-crosshair");
|
|
71
|
+
}
|
|
72
|
+
enableTextSelection();
|
|
73
|
+
enableImageDrag();
|
|
74
|
+
off(this._container, {
|
|
75
|
+
contextmenu: stop,
|
|
76
|
+
pointermove: this._onPointerMove,
|
|
77
|
+
pointerup: this._onPointerUp
|
|
78
|
+
}, this);
|
|
79
|
+
off(document, "keydown", this._onKeyDown, this);
|
|
80
|
+
}
|
|
81
|
+
_onPointerUp(e) {
|
|
82
|
+
if (e.button !== 0) return;
|
|
83
|
+
this._finish();
|
|
84
|
+
if (!this._moved) return;
|
|
85
|
+
this._clearDeferredResetState();
|
|
86
|
+
this._resetStateTimeout = setTimeout(this._resetState.bind(this), 0);
|
|
87
|
+
const bounds = new LatLngBounds(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point));
|
|
88
|
+
this._map.fitBounds(bounds).fire("boxzoomend", { boxZoomBounds: bounds });
|
|
89
|
+
}
|
|
90
|
+
_onKeyDown(e) {
|
|
91
|
+
if (e.code === "Escape") {
|
|
92
|
+
this._finish();
|
|
93
|
+
this._clearDeferredResetState();
|
|
94
|
+
this._resetState();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
static register(MaplairMap) {
|
|
98
|
+
MaplairMap.mergeOptions({ boxZoom: true });
|
|
99
|
+
MaplairMap.addInitHook("addHandler", "boxZoom", BoxZoomHandler);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
//#endregion
|
|
103
|
+
export { BoxZoomHandler };
|
|
104
|
+
|
|
105
|
+
//# sourceMappingURL=BoxZoomHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoxZoomHandler.js","names":["DomEvent.stop","DomUtil.create"],"sources":["../../../../src/map/handler/BoxZoomHandler.js"],"sourcesContent":["import {Handler} from '../../core/Handler.js';\nimport * as DomUtil from '../../dom/DomUtil.js';\nimport * as DomEvent from '../../dom/DomEvent.js';\nimport {LatLngBounds} from '../../geo/LatLngBounds.js';\nimport {Bounds} from '../../geometry/Bounds.js';\n\n/*\n * Handler.BoxZoom is used to add shift-drag zoom interaction to the map\n * (zoom to a selected bounding box), enabled by default.\n */\n\nexport class BoxZoomHandler extends Handler {\n\tconstructor(map) {\n\t\tsuper(map);\n\t\tthis._container = map._container;\n\t\tthis._pane = map._panes.overlayPane;\n\t\tthis._resetStateTimeout = 0;\n\t\tmap.on('unload', this._destroy, this);\n\n\t\tthis.callInitHooks(BoxZoomHandler);\n\t}\n\n\taddHooks() {\n\t\tDomEvent.on(this._container, 'pointerdown', this._onPointerDown, this);\n\t}\n\n\tremoveHooks() {\n\t\tDomEvent.off(this._container, 'pointerdown', this._onPointerDown, this);\n\t}\n\n\tmoved() {\n\t\treturn this._moved;\n\t}\n\n\t_destroy() {\n\t\tthis._pane.remove();\n\t\tdelete this._pane;\n\t}\n\n\t_resetState() {\n\t\tthis._resetStateTimeout = 0;\n\t\tthis._moved = false;\n\t}\n\n\t_clearDeferredResetState() {\n\t\tif (this._resetStateTimeout !== 0) {\n\t\t\tclearTimeout(this._resetStateTimeout);\n\t\t\tthis._resetStateTimeout = 0;\n\t\t}\n\t}\n\n\t_onPointerDown(e) {\n\t\tif (!e.shiftKey || (e.button !== 0)) { return false; }\n\n\t\t// Clear the deferred resetState if it hasn't executed yet, otherwise it\n\t\t// will interrupt the interaction and orphan a box element in the container.\n\t\tthis._clearDeferredResetState();\n\t\tthis._resetState();\n\n\t\tDomUtil.disableTextSelection();\n\t\tDomUtil.disableImageDrag();\n\n\t\tthis._startPoint = this._map.pointerEventToContainerPoint(e);\n\n\t\tDomEvent.on(this._container, {\n\t\t\tcontextmenu: DomEvent.stop,\n\t\t\tpointermove: this._onPointerMove,\n\t\t\tpointerup: this._onPointerUp,\n\t\t\tkeydown: this._onKeyDown\n\t\t}, this);\n\t\tDomEvent.on(document, 'keydown', this._onKeyDown, this);\n\t}\n\n\t_onPointerMove(e) {\n\t\tif (!this._moved) {\n\t\t\tthis._moved = true;\n\n\t\t\tthis._box = DomUtil.create('div', 'maplair-zoom-box', this._container);\n\t\t\tthis._container.classList.add('maplair-crosshair');\n\n\t\t\tthis._map.fire('boxzoomstart');\n\t\t}\n\n\t\tthis._point = this._map.pointerEventToContainerPoint(e);\n\n\t\tconst bounds = new Bounds(this._point, this._startPoint),\n\t\tsize = bounds.getSize();\n\n\t\tDomUtil.setPosition(this._box, bounds.min);\n\n\t\tthis._box.style.width = `${size.x}px`;\n\t\tthis._box.style.height = `${size.y}px`;\n\t}\n\n\t_finish() {\n\t\tif (this._moved) {\n\t\t\tthis._box.remove();\n\t\t\tthis._container.classList.remove('maplair-crosshair');\n\t\t}\n\n\t\tDomUtil.enableTextSelection();\n\t\tDomUtil.enableImageDrag();\n\n\t\tDomEvent.off(this._container, {\n\t\t\tcontextmenu: DomEvent.stop,\n\t\t\tpointermove: this._onPointerMove,\n\t\t\tpointerup: this._onPointerUp,\n\t\t}, this);\n\t\tDomEvent.off(document, 'keydown', this._onKeyDown, this);\n\t}\n\n\t_onPointerUp(e) {\n\t\tif (e.button !== 0) { return; }\n\n\t\tthis._finish();\n\n\t\tif (!this._moved) { return; }\n\t\t// Postpone to next JS tick so internal click event handling\n\t\t// still see it as \"moved\".\n\t\tthis._clearDeferredResetState();\n\t\tthis._resetStateTimeout = setTimeout(this._resetState.bind(this), 0);\n\n\t\tconst bounds = new LatLngBounds(\n\t\t\tthis._map.containerPointToLatLng(this._startPoint),\n\t\t\tthis._map.containerPointToLatLng(this._point));\n\n\t\tthis._map\n\t\t\t.fitBounds(bounds)\n\t\t\t.fire('boxzoomend', {boxZoomBounds: bounds});\n\t}\n\n\t_onKeyDown(e) {\n\t\tif (e.code === 'Escape') {\n\t\t\tthis._finish();\n\t\t\tthis._clearDeferredResetState();\n\t\t\tthis._resetState();\n\t\t}\n\t}\n\n\t// Registers this default feature on the map class, called by `MaplairMap` itself.\n\tstatic register(MaplairMap) {\n\t\t// @namespace MaplairMap\n\t\t// @section Interaction Options\n\t\tMaplairMap.mergeOptions({\n\t\t\t// @option boxZoom: Boolean = true\n\t\t\t// Whether the map can be zoomed to a rectangular area specified by\n\t\t\t// dragging the pointer while pressing the shift key.\n\t\t\tboxZoom: true\n\t\t});\n\n\t\t// @section Handlers\n\t\t// @property boxZoom: Handler\n\t\t// Box (shift-drag with pointer) zoom handler.\n\t\tMaplairMap.addInitHook('addHandler', 'boxZoom', BoxZoomHandler);\n\t}\n}\n"],"mappings":";;;;;;AAWA,IAAa,iBAAb,MAAa,uBAAuB,QAAQ;CAC3C,YAAY,KAAK;EAChB,MAAM,GAAG;EACT,KAAK,aAAa,IAAI;EACtB,KAAK,QAAQ,IAAI,OAAO;EACxB,K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E;EACnC,KAAK,KAAK,MAAM,SAAS,GAAG,KAAK,EAAE;CACpC;CAEA,UAAU;EACT,IAAI,KAAK,QAAQ;GAChB,KAAK,KAAK,OAAO;GACjB,KAAK,WAAW,UAAU,OAAO,mBAAmB;EACrD;EAEA,oBAA4B;EAC5B,gBAAwB;EAExB,IAAa,KAAK,YAAY;GAC7B,aAAaD;GACb,aAAa,KAAK;GAClB,WAAW,KAAK;EACjB,GAAG,IAAI;EACP,IAAa,UAAU,WAAW,KAAK,YAAY,IAAI;CACxD;CAEA,aAAa,GAAG;EACf,IAAI,EAAE,WAAW,GAAK;EAEtB,KAAK,QAAQ;EAEb,IAAI,CAAC,KAAK,QAAU;EAGpB,KAAK,yBAAyB;EAC9B,KAAK,qBAAqB,WAAW,KAAK,YAAY,KAAK,IAAI,GAAG,CAAC;EAEnE,MAAM,SAAS,IAAI,aAClB,KAAK,KAAK,uBAAuB,KAAK,WAAW,GACjD,KAAK,KAAK,uBAAuB,KAAK,MAAM,CAAC;EAE9C,KAAK,KACH,UAAU,MAAM,CAAC,CACjB,KAAK,cAAc,EAAC,eAAe,OAAM,CAAC;CAC7C;CAEA,WAAW,GAAG;EACb,IAAI,EAAE,SAAS,UAAU;GACxB,KAAK,QAAQ;GACb,KAAK,yBAAyB;GAC9B,KAAK,YAAY;EAClB;CACD;CAGA,OAAO,SAAS,YAAY;EAG3B,WAAW,aAAa,EAIvB,SAAS,KACV,CAAC;EAKD,WAAW,YAAY,cAAc,WAAW,cAAc;CAC/D;AACD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Handler } from "../../core/Handler.js";
|
|
2
|
+
//#region src/map/handler/DoubleClickZoomHandler.js
|
|
3
|
+
var DoubleClickZoomHandler = class DoubleClickZoomHandler extends Handler {
|
|
4
|
+
constructor(...args) {
|
|
5
|
+
super(...args);
|
|
6
|
+
this.callInitHooks(DoubleClickZoomHandler);
|
|
7
|
+
}
|
|
8
|
+
addHooks() {
|
|
9
|
+
this._map.on("dblclick", this._onDoubleClick, this);
|
|
10
|
+
}
|
|
11
|
+
removeHooks() {
|
|
12
|
+
this._map.off("dblclick", this._onDoubleClick, this);
|
|
13
|
+
}
|
|
14
|
+
_onDoubleClick(e) {
|
|
15
|
+
const map = this._map, oldZoom = map.getZoom(), delta = map.options.zoomDelta, zoom = e.originalEvent.shiftKey ? oldZoom - delta : oldZoom + delta;
|
|
16
|
+
if (map.options.doubleClickZoom === "center") map.setZoom(zoom);
|
|
17
|
+
else map.setZoomAround(e.containerPoint, zoom);
|
|
18
|
+
}
|
|
19
|
+
static register(MaplairMap) {
|
|
20
|
+
MaplairMap.mergeOptions({ doubleClickZoom: true });
|
|
21
|
+
MaplairMap.addInitHook("addHandler", "doubleClickZoom", DoubleClickZoomHandler);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { DoubleClickZoomHandler };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=DoubleClickZoomHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DoubleClickZoomHandler.js","names":[],"sources":["../../../../src/map/handler/DoubleClickZoomHandler.js"],"sourcesContent":["import {Handler} from '../../core/Handler.js';\n\n/*\n * Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default.\n */\n\n// @namespace MaplairMap\n// @section Interaction Options\n\nexport class DoubleClickZoomHandler extends Handler {\n\tconstructor(...args) {\n\t\tsuper(...args);\n\t\tthis.callInitHooks(DoubleClickZoomHandler);\n\t}\n\n\taddHooks() {\n\t\tthis._map.on('dblclick', this._onDoubleClick, this);\n\t}\n\n\tremoveHooks() {\n\t\tthis._map.off('dblclick', this._onDoubleClick, this);\n\t}\n\n\t_onDoubleClick(e) {\n\t\tconst map = this._map,\n\t\toldZoom = map.getZoom(),\n\t\tdelta = map.options.zoomDelta,\n\t\tzoom = e.originalEvent.shiftKey ? oldZoom - delta : oldZoom + delta;\n\n\t\tif (map.options.doubleClickZoom === 'center') {\n\t\t\tmap.setZoom(zoom);\n\t\t} else {\n\t\t\tmap.setZoomAround(e.containerPoint, zoom);\n\t\t}\n\t}\n\n\t// Registers this default feature on the map class, called by `MaplairMap` itself.\n\tstatic register(MaplairMap) {\n\t\tMaplairMap.mergeOptions({\n\t\t\t// @option doubleClickZoom: Boolean|String = true\n\t\t\t// Whether the map can be zoomed in by double clicking on it and\n\t\t\t// zoomed out by double clicking while holding shift. If passed\n\t\t\t// `'center'`, double-click zoom will zoom to the center of the\n\t\t\t// view regardless of where the pointer was.\n\t\t\tdoubleClickZoom: true\n\t\t});\n\n\t\t// @section Handlers\n\t\t//\n\t\t// Map properties include interaction handlers that allow you to control\n\t\t// interaction behavior in runtime, enabling or disabling certain features such\n\t\t// as dragging or touch zoom (see `Handler` methods). For example:\n\t\t//\n\t\t// ```js\n\t\t// map.doubleClickZoom.disable();\n\t\t// ```\n\t\t//\n\t\t// @property doubleClickZoom: Handler\n\t\t// Double click zoom handler.\n\t\tMaplairMap.addInitHook('addHandler', 'doubleClickZoom', DoubleClickZoomHandler);\n\t}\n}\n"],"mappings":";;AASA,IAAa,yBAAb,MAAa,+BAA+B,QAAQ;CACnD,YAAY,GAAG,MAAM;EACpB,MAAM,GAAG,IAAI;EACb,KAAK,cAAc,sBAAsB;CAC1C;CAEA,WAAW;EACV,KAAK,KAAK,GAAG,YAAY,KAAK,gBAAgB,IAAI;CACnD;CAEA,cAAc;EACb,KAAK,KAAK,IAAI,YAAY,KAAK,gBAAgB,IAAI;CACpD;CAEA,eAAe,GAAG;EACjB,MAAM,MAAM,KAAK,MACjB,UAAU,IAAI,QAAQ,GACtB,QAAQ,IAAI,QAAQ,WACpB,OAAO,EAAE,cAAc,WAAW,UAAU,QAAQ,UAAU;EAE9D,IAAI,IAAI,QAAQ,oBAAoB,UACnC,IAAI,QAAQ,IAAI;OAEhB,IAAI,cAAc,EAAE,gBAAgB,IAAI;CAE1C;CAGA,OAAO,SAAS,YAAY;EAC3B,WAAW,aAAa,EAMvB,iBAAiB,KAClB,CAAC;EAcD,WAAW,YAAY,cAAc,mBAAmB,sBAAsB;CAC/E;AACD"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Point } from "../../geometry/Point.js";
|
|
2
|
+
import { Handler } from "../../core/Handler.js";
|
|
3
|
+
import { Draggable } from "../../dom/Draggable.js";
|
|
4
|
+
import { Bounds } from "../../geometry/Bounds.js";
|
|
5
|
+
import { LatLngBounds } from "../../geo/LatLngBounds.js";
|
|
6
|
+
//#region src/map/handler/DragHandler.js
|
|
7
|
+
var DragHandler = class DragHandler extends Handler {
|
|
8
|
+
constructor(...args) {
|
|
9
|
+
super(...args);
|
|
10
|
+
this.callInitHooks(DragHandler);
|
|
11
|
+
}
|
|
12
|
+
addHooks() {
|
|
13
|
+
if (!this._draggable) {
|
|
14
|
+
const map = this._map;
|
|
15
|
+
this._draggable = new Draggable(map._mapPane, map._container);
|
|
16
|
+
this._draggable.on({
|
|
17
|
+
dragstart: this._onDragStart,
|
|
18
|
+
drag: this._onDrag,
|
|
19
|
+
dragend: this._onDragEnd
|
|
20
|
+
}, this);
|
|
21
|
+
this._draggable.on("predrag", this._onPreDragLimit, this);
|
|
22
|
+
if (map.options.worldCopyJump) {
|
|
23
|
+
this._draggable.on("predrag", this._onPreDragWrap, this);
|
|
24
|
+
map.on("zoomend", this._onZoomEnd, this);
|
|
25
|
+
map.whenReady(this._onZoomEnd, this);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
this._map._container.classList.add("maplair-grab", "maplair-touch-drag");
|
|
29
|
+
this._draggable.enable();
|
|
30
|
+
this._positions = [];
|
|
31
|
+
this._times = [];
|
|
32
|
+
}
|
|
33
|
+
removeHooks() {
|
|
34
|
+
this._map._container.classList.remove("maplair-grab", "maplair-touch-drag");
|
|
35
|
+
this._draggable.disable();
|
|
36
|
+
}
|
|
37
|
+
moved() {
|
|
38
|
+
return this._draggable?._moved;
|
|
39
|
+
}
|
|
40
|
+
moving() {
|
|
41
|
+
return this._draggable?._moving;
|
|
42
|
+
}
|
|
43
|
+
_onDragStart() {
|
|
44
|
+
const map = this._map;
|
|
45
|
+
map._stop();
|
|
46
|
+
if (this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
|
|
47
|
+
const bounds = new LatLngBounds(this._map.options.maxBounds);
|
|
48
|
+
this._offsetLimit = new Bounds(this._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1), this._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));
|
|
49
|
+
this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity));
|
|
50
|
+
} else this._offsetLimit = null;
|
|
51
|
+
map.fire("movestart").fire("dragstart");
|
|
52
|
+
if (map.options.inertia) {
|
|
53
|
+
this._positions = [];
|
|
54
|
+
this._times = [];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
_onDrag(e) {
|
|
58
|
+
if (this._map.options.inertia) {
|
|
59
|
+
const time = this._lastTime = Date.now(), pos = this._lastPos = this._draggable._absPos || this._draggable._newPos;
|
|
60
|
+
this._positions.push(pos);
|
|
61
|
+
this._times.push(time);
|
|
62
|
+
this._prunePositions(time);
|
|
63
|
+
}
|
|
64
|
+
this._map.fire("move", e).fire("drag", e);
|
|
65
|
+
}
|
|
66
|
+
_prunePositions(time) {
|
|
67
|
+
while (this._positions.length > 1 && time - this._times[0] > 50) {
|
|
68
|
+
this._positions.shift();
|
|
69
|
+
this._times.shift();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
_onZoomEnd() {
|
|
73
|
+
const pxCenter = this._map.getSize().divideBy(2), pxWorldCenter = this._map.latLngToLayerPoint([0, 0]);
|
|
74
|
+
this._initialWorldOffset = pxWorldCenter.subtract(pxCenter).x;
|
|
75
|
+
this._worldWidth = this._map.getPixelWorldBounds().getSize().x;
|
|
76
|
+
}
|
|
77
|
+
_viscousLimit(value, threshold) {
|
|
78
|
+
return value - (value - threshold) * this._viscosity;
|
|
79
|
+
}
|
|
80
|
+
_onPreDragLimit() {
|
|
81
|
+
if (!this._viscosity || !this._offsetLimit) return;
|
|
82
|
+
const offset = this._draggable._newPos.subtract(this._draggable._startPos);
|
|
83
|
+
const limit = this._offsetLimit;
|
|
84
|
+
if (offset.x < limit.min.x) offset.x = this._viscousLimit(offset.x, limit.min.x);
|
|
85
|
+
if (offset.y < limit.min.y) offset.y = this._viscousLimit(offset.y, limit.min.y);
|
|
86
|
+
if (offset.x > limit.max.x) offset.x = this._viscousLimit(offset.x, limit.max.x);
|
|
87
|
+
if (offset.y > limit.max.y) offset.y = this._viscousLimit(offset.y, limit.max.y);
|
|
88
|
+
this._draggable._newPos = this._draggable._startPos.add(offset);
|
|
89
|
+
}
|
|
90
|
+
_onPreDragWrap() {
|
|
91
|
+
const worldWidth = this._worldWidth, halfWidth = Math.round(worldWidth / 2), dx = this._initialWorldOffset, x = this._draggable._newPos.x, newX1 = (x - halfWidth + dx) % worldWidth + halfWidth - dx, newX2 = (x + halfWidth + dx) % worldWidth - halfWidth - dx, newX = Math.abs(newX1 + dx) < Math.abs(newX2 + dx) ? newX1 : newX2;
|
|
92
|
+
this._draggable._absPos = new Point(this._draggable._newPos);
|
|
93
|
+
this._draggable._newPos.x = newX;
|
|
94
|
+
}
|
|
95
|
+
_onDragEnd(e) {
|
|
96
|
+
const map = this._map, options = map.options, noInertia = !options.inertia || e.noInertia || this._times.length < 2;
|
|
97
|
+
map.fire("dragend", e);
|
|
98
|
+
if (noInertia) map.fire("moveend");
|
|
99
|
+
else {
|
|
100
|
+
this._prunePositions(Date.now());
|
|
101
|
+
const direction = this._lastPos.subtract(this._positions[0]), duration = (this._lastTime - this._times[0]) / 1e3, ease = options.easeLinearity, speedVector = direction.multiplyBy(ease / duration), speed = speedVector.distanceTo([0, 0]), limitedSpeed = Math.min(options.inertiaMaxSpeed, speed), limitedSpeedVector = speedVector.multiplyBy(limitedSpeed / speed), decelerationDuration = limitedSpeed / (options.inertiaDeceleration * ease);
|
|
102
|
+
let offset = limitedSpeedVector.multiplyBy(-decelerationDuration / 2).round();
|
|
103
|
+
if (!offset.x && !offset.y) map.fire("moveend");
|
|
104
|
+
else {
|
|
105
|
+
offset = map._limitOffset(offset, map.options.maxBounds);
|
|
106
|
+
requestAnimationFrame(() => {
|
|
107
|
+
map.panBy(offset, {
|
|
108
|
+
duration: decelerationDuration,
|
|
109
|
+
easeLinearity: ease,
|
|
110
|
+
noMoveStart: true,
|
|
111
|
+
animate: true
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
static register(MaplairMap) {
|
|
118
|
+
MaplairMap.mergeOptions({
|
|
119
|
+
dragging: true,
|
|
120
|
+
inertia: true,
|
|
121
|
+
inertiaDeceleration: 3400,
|
|
122
|
+
inertiaMaxSpeed: Infinity,
|
|
123
|
+
easeLinearity: .2,
|
|
124
|
+
worldCopyJump: false,
|
|
125
|
+
maxBoundsViscosity: 0
|
|
126
|
+
});
|
|
127
|
+
MaplairMap.addInitHook("addHandler", "dragging", DragHandler);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
//#endregion
|
|
131
|
+
export { DragHandler };
|
|
132
|
+
|
|
133
|
+
//# sourceMappingURL=DragHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragHandler.js","names":[],"sources":["../../../../src/map/handler/DragHandler.js"],"sourcesContent":["import {Handler} from '../../core/Handler.js';\nimport {Draggable} from '../../dom/Draggable.js';\nimport {LatLngBounds} from '../../geo/LatLngBounds.js';\nimport {Bounds} from '../../geometry/Bounds.js';\nimport {Point} from '../../geometry/Point.js';\n\n/*\n * Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.\n */\n\nexport class DragHandler extends Handler {\n\tconstructor(...args) {\n\t\tsuper(...args);\n\t\tthis.callInitHooks(DragHandler);\n\t}\n\n\taddHooks() {\n\t\tif (!this._draggable) {\n\t\t\tconst map = this._map;\n\n\t\t\tthis._draggable = new Draggable(map._mapPane, map._container);\n\n\t\t\tthis._draggable.on({\n\t\t\t\tdragstart: this._onDragStart,\n\t\t\t\tdrag: this._onDrag,\n\t\t\t\tdragend: this._onDragEnd\n\t\t\t}, this);\n\n\t\t\tthis._draggable.on('predrag', this._onPreDragLimit, this);\n\t\t\tif (map.options.worldCopyJump) {\n\t\t\t\tthis._draggable.on('predrag', this._onPreDragWrap, this);\n\t\t\t\tmap.on('zoomend', this._onZoomEnd, this);\n\n\t\t\t\tmap.whenReady(this._onZoomEnd, this);\n\t\t\t}\n\t\t}\n\t\tthis._map._container.classList.add('maplair-grab', 'maplair-touch-drag');\n\t\tthis._draggable.enable();\n\t\tthis._positions = [];\n\t\tthis._times = [];\n\t}\n\n\tremoveHooks() {\n\t\tthis._map._container.classList.remove('maplair-grab', 'maplair-touch-drag');\n\t\tthis._draggable.disable();\n\t}\n\n\tmoved() {\n\t\treturn this._draggable?._moved;\n\t}\n\n\tmoving() {\n\t\treturn this._draggable?._moving;\n\t}\n\n\t_onDragStart() {\n\t\tconst map = this._map;\n\n\t\tmap._stop();\n\t\tif (this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {\n\t\t\tconst bounds = new LatLngBounds(this._map.options.maxBounds);\n\n\t\t\tthis._offsetLimit = new Bounds(\n\t\t\t\tthis._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1),\n\t\t\t\tthis._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1)\n\t\t\t\t\t.add(this._map.getSize()));\n\n\t\t\tthis._viscosity = Math.min(1.0, Math.max(0.0, this._map.options.maxBoundsViscosity));\n\t\t} else {\n\t\t\tthis._offsetLimit = null;\n\t\t}\n\n\t\tmap\n\t\t\t.fire('movestart')\n\t\t\t.fire('dragstart');\n\n\t\tif (map.options.inertia) {\n\t\t\tthis._positions = [];\n\t\t\tthis._times = [];\n\t\t}\n\t}\n\n\t_onDrag(e) {\n\t\tif (this._map.options.inertia) {\n\t\t\tconst time = this._lastTime = Date.now(),\n\t\t\tpos = this._lastPos = this._draggable._absPos || this._draggable._newPos;\n\n\t\t\tthis._positions.push(pos);\n\t\t\tthis._times.push(time);\n\n\t\t\tthis._prunePositions(time);\n\t\t}\n\n\t\tthis._map\n\t\t\t.fire('move', e)\n\t\t\t.fire('drag', e);\n\t}\n\n\t_prunePositions(time) {\n\t\twhile (this._positions.length > 1 && time - this._times[0] > 50) {\n\t\t\tthis._positions.shift();\n\t\t\tthis._times.shift();\n\t\t}\n\t}\n\n\t_onZoomEnd() {\n\t\tconst pxCenter = this._map.getSize().divideBy(2),\n\t\tpxWorldCenter = this._map.latLngToLayerPoint([0, 0]);\n\n\t\tthis._initialWorldOffset = pxWorldCenter.subtract(pxCenter).x;\n\t\tthis._worldWidth = this._map.getPixelWorldBounds().getSize().x;\n\t}\n\n\t_viscousLimit(value, threshold) {\n\t\treturn value - (value - threshold) * this._viscosity;\n\t}\n\n\t_onPreDragLimit() {\n\t\tif (!this._viscosity || !this._offsetLimit) { return; }\n\n\t\tconst offset = this._draggable._newPos.subtract(this._draggable._startPos);\n\n\t\tconst limit = this._offsetLimit;\n\t\tif (offset.x < limit.min.x) { offset.x = this._viscousLimit(offset.x, limit.min.x); }\n\t\tif (offset.y < limit.min.y) { offset.y = this._viscousLimit(offset.y, limit.min.y); }\n\t\tif (offset.x > limit.max.x) { offset.x = this._viscousLimit(offset.x, limit.max.x); }\n\t\tif (offset.y > limit.max.y) { offset.y = this._viscousLimit(offset.y, limit.max.y); }\n\n\t\tthis._draggable._newPos = this._draggable._startPos.add(offset);\n\t}\n\n\t_onPreDragWrap() {\n\t\t// TODO refactor to be able to adjust map pane position after zoom\n\t\tconst worldWidth = this._worldWidth,\n\t\thalfWidth = Math.round(worldWidth / 2),\n\t\tdx = this._initialWorldOffset,\n\t\tx = this._draggable._newPos.x,\n\t\tnewX1 = (x - halfWidth + dx) % worldWidth + halfWidth - dx,\n\t\tnewX2 = (x + halfWidth + dx) % worldWidth - halfWidth - dx,\n\t\tnewX = Math.abs(newX1 + dx) < Math.abs(newX2 + dx) ? newX1 : newX2;\n\n\t\tthis._draggable._absPos = new Point(this._draggable._newPos);\n\t\tthis._draggable._newPos.x = newX;\n\t}\n\n\t_onDragEnd(e) {\n\t\tconst map = this._map,\n\t\toptions = map.options,\n\n\t\tnoInertia = !options.inertia || e.noInertia || this._times.length < 2;\n\n\t\tmap.fire('dragend', e);\n\n\t\tif (noInertia) {\n\t\t\tmap.fire('moveend');\n\n\t\t} else {\n\t\t\tthis._prunePositions(Date.now());\n\n\t\t\tconst direction = this._lastPos.subtract(this._positions[0]),\n\t\t\tduration = (this._lastTime - this._times[0]) / 1000,\n\t\t\tease = options.easeLinearity,\n\n\t\t\tspeedVector = direction.multiplyBy(ease / duration),\n\t\t\tspeed = speedVector.distanceTo([0, 0]),\n\n\t\t\tlimitedSpeed = Math.min(options.inertiaMaxSpeed, speed),\n\t\t\tlimitedSpeedVector = speedVector.multiplyBy(limitedSpeed / speed),\n\n\t\t\tdecelerationDuration = limitedSpeed / (options.inertiaDeceleration * ease);\n\t\t\tlet offset = limitedSpeedVector.multiplyBy(-decelerationDuration / 2).round();\n\n\t\t\tif (!offset.x && !offset.y) {\n\t\t\t\tmap.fire('moveend');\n\n\t\t\t} else {\n\t\t\t\toffset = map._limitOffset(offset, map.options.maxBounds);\n\n\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\tmap.panBy(offset, {\n\t\t\t\t\t\tduration: decelerationDuration,\n\t\t\t\t\t\teaseLinearity: ease,\n\t\t\t\t\t\tnoMoveStart: true,\n\t\t\t\t\t\tanimate: true\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\t// Registers this default feature on the map class, called by `MaplairMap` itself.\n\tstatic register(MaplairMap) {\n\t\t// @namespace MaplairMap\n\t\t// @section Interaction Options\n\t\tMaplairMap.mergeOptions({\n\t\t\t// @option dragging: Boolean = true\n\t\t\t// Whether the map is draggable with pointer or not.\n\t\t\tdragging: true,\n\n\t\t\t// @section Panning Inertia Options\n\t\t\t// @option inertia: Boolean = *\n\t\t\t// If enabled, panning of the map will have an inertia effect where\n\t\t\t// the map builds momentum while dragging and continues moving in\n\t\t\t// the same direction for some time. Feels especially nice on touch\n\t\t\t// devices. Enabled by default.\n\t\t\tinertia: true,\n\n\t\t\t// @option inertiaDeceleration: Number = 3000\n\t\t\t// The rate with which the inertial movement slows down, in pixels/second².\n\t\t\tinertiaDeceleration: 3400, // px/s^2\n\n\t\t\t// @option inertiaMaxSpeed: Number = Infinity\n\t\t\t// Max speed of the inertial movement, in pixels/second.\n\t\t\tinertiaMaxSpeed: Infinity, // px/s\n\n\t\t\t// @option easeLinearity: Number = 0.2\n\t\t\teaseLinearity: 0.2,\n\n\t\t\t// TODO refactor, move to CRS\n\t\t\t// @option worldCopyJump: Boolean = false\n\t\t\t// With this option enabled, the map tracks when you pan to another \"copy\"\n\t\t\t// of the world and seamlessly jumps to the original one so that all overlays\n\t\t\t// like markers and vector layers are still visible.\n\t\t\tworldCopyJump: false,\n\n\t\t\t// @option maxBoundsViscosity: Number = 0.0\n\t\t\t// If `maxBounds` is set, this option will control how solid the bounds\n\t\t\t// are when dragging the map around. The default value of `0.0` allows the\n\t\t\t// user to drag outside the bounds at normal speed, higher values will\n\t\t\t// slow down map dragging outside bounds, and `1.0` makes the bounds fully\n\t\t\t// solid, preventing the user from dragging outside the bounds.\n\t\t\tmaxBoundsViscosity: 0.0\n\t\t});\n\n\t\t// @section Handlers\n\t\t// @property dragging: Handler\n\t\t// Map dragging handler.\n\t\tMaplairMap.addInitHook('addHandler', 'dragging', DragHandler);\n\t}\n}\n"],"mappings":";;;;;;AAUA,IAAa,cAAb,MAAa,oBAAoB,QAAQ;CACxC,YAAY,GAAG,MAAM;EACpB,MAAM,GAAG,IAAI;EACb,KAAK,cAAc,WAAW;CAC/B;CAEA,WAAW;EACV,IAAI,CAAC,KAAK,YAAY;GACrB,MAAM,MAAM,KAA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