@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.
- package/README.md +146 -0
- package/dist/components.css +1 -0
- package/dist/components.d.ts +1007 -0
- package/dist/components.js +866 -0
- package/dist/components.mjs +25347 -0
- package/dist/composables.d.ts +39 -0
- package/dist/composables.js +1 -0
- package/dist/composables.mjs +5 -0
- package/dist/index-DJPTWX6O.js +2223 -0
- package/dist/index-K0bKFr5g.cjs +5 -0
- package/dist/index.d.ts +998 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +17 -0
- package/dist/styles/map.css +0 -0
- package/dist/utils.d.ts +130 -0
- package/dist/utils.js +1 -0
- package/dist/utils.mjs +1 -0
- package/package.json +72 -0
|
@@ -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;
|