@phila/phila-ui-map-core 0.0.1-beta.2

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.
@@ -0,0 +1,39 @@
1
+ import { IControl } from 'maplibre-gl';
2
+ import { Map as Map_2 } from 'maplibre-gl';
3
+ import { Ref } from 'vue';
4
+
5
+ declare interface ButtonControl extends IControl {
6
+ _map?: Map_2;
7
+ _container?: HTMLDivElement;
8
+ _button?: HTMLButtonElement;
9
+ }
10
+
11
+ /**
12
+ * Factory for creating standard button controls
13
+ */
14
+ export declare function createButtonControl(icon?: string, image?: string, title?: string, iconSize?: number, clickHandler?: (this: GlobalEventHandlers, ev: MouseEvent) => void): ButtonControl;
15
+
16
+ declare interface MapControlProps {
17
+ position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
18
+ }
19
+
20
+ /**
21
+ * Composable for creating MapLibre IControl components
22
+ * Handles the boilerplate of adding/removing controls
23
+ */
24
+ export declare function useMapControl(props: MapControlProps, createControlFn: (map: Map_2) => IControl | Promise<IControl>): {
25
+ map: Ref<Map_2 | null, Map_2 | null> | undefined;
26
+ control: null;
27
+ };
28
+
29
+ export { }
30
+
31
+
32
+ declare global {
33
+ interface Window {
34
+ deleteActivePolygon?: () => void;
35
+ cancelDrawing?: () => void;
36
+ finishDrawing?: () => void;
37
+ }
38
+ }
39
+
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-K0bKFr5g.cjs");exports.createButtonControl=o.createButtonControl;exports.useMapControl=o.useMapControl;
@@ -0,0 +1,5 @@
1
+ import { q as r, u as a } from "./index-DJPTWX6O.js";
2
+ export {
3
+ r as createButtonControl,
4
+ a as useMapControl
5
+ };