@maptiler/sdk 4.2.0 → 4.2.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.
|
@@ -19,7 +19,7 @@ declare const CAMERA_EVENTS: readonly ["moveend", "movestart", "move", "zoomend"
|
|
|
19
19
|
declare const UI_EVENTS: readonly ["click", "dblclick", "mousedown", "mouseup", "mousemove", "mouseout", "mouseover", "contextmenu", "touchstart", "touchend", "touchmove", "touchcancel"];
|
|
20
20
|
declare const COOPERATIVE_GESTURE_EVENTS: readonly ["cooperativegestureprevented"];
|
|
21
21
|
declare const DATA_EVENTS: readonly ["data", "dataloading", "sourcedata", "sourcedataloading", "dataabort", "sourcedataabort"];
|
|
22
|
-
export declare const IMAGE_VIEWER_EVENT_TYPES: ("
|
|
22
|
+
export declare const IMAGE_VIEWER_EVENT_TYPES: ("remove" | "error" | "load" | "idle" | "render" | "resize" | "webglcontextlost" | "webglcontextrestored" | "dataloading" | "data" | "sourcedataloading" | "sourcedata" | "dataabort" | "sourcedataabort" | "boxzoomcancel" | "boxzoomstart" | "boxzoomend" | "touchcancel" | "touchmove" | "touchend" | "touchstart" | "click" | "contextmenu" | "dblclick" | "mousemove" | "mouseup" | "mousedown" | "mouseout" | "mouseover" | "movestart" | "move" | "moveend" | "zoomstart" | "zoom" | "zoomend" | "rotatestart" | "rotate" | "rotateend" | "dragstart" | "drag" | "dragend" | "cooperativegestureprevented")[];
|
|
23
23
|
type BaseMapEventKeys = (typeof BASE_MAP_EVENT_TYPES)[number];
|
|
24
24
|
type UiEventKeys = (typeof UI_EVENTS)[number];
|
|
25
25
|
type CameraEventKeys = (typeof CAMERA_EVENTS)[number];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes MapLibre AttributionControl sanitize attributions properly
|
|
3
|
+
*
|
|
4
|
+
* Attributions come from styles and TileJSONs, which may not be trusted, but MapLibre only removes some of the
|
|
5
|
+
* dangerous markup from them (it even skips the attribute after each one it removes). MapLibre AttributionControl
|
|
6
|
+
* itself is patched, rather than only the SDK AttributionControl extending it, because that is the one the map
|
|
7
|
+
* adds by default.
|
|
8
|
+
*/
|
|
9
|
+
export {};
|