@geoql/v-maplibre 1.1.2 → 1.1.3
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/dist/constants/events/index.d.ts +4 -0
- package/dist/constants/events/layer.d.ts +2 -0
- package/dist/constants/events/map.d.ts +2 -0
- package/dist/constants/events/marker.d.ts +2 -0
- package/dist/constants/events/popup.d.ts +1 -0
- package/dist/controls/attribution/VControlAttribution.vue.d.ts +21 -0
- package/dist/controls/attribution/index.d.ts +1 -0
- package/dist/controls/attribution/types.d.ts +1 -0
- package/dist/controls/fullscreen/VControlFullscreen.vue.d.ts +11 -0
- package/dist/controls/fullscreen/index.d.ts +1 -0
- package/dist/controls/fullscreen/types.d.ts +1 -0
- package/dist/controls/geolocate/VControlGeolocate.vue.d.ts +11 -0
- package/dist/controls/geolocate/events.d.ts +1 -0
- package/dist/controls/geolocate/index.d.ts +1 -0
- package/dist/controls/geolocate/types.d.ts +1 -0
- package/dist/controls/index.d.ts +5 -0
- package/dist/controls/navigation/VControlNavigation.vue.d.ts +11 -0
- package/dist/controls/navigation/index.d.ts +1 -0
- package/dist/controls/navigation/types.d.ts +6 -0
- package/dist/controls/scale/VControlScale.vue.d.ts +21 -0
- package/dist/controls/scale/index.d.ts +1 -0
- package/dist/controls/scale/types.d.ts +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/layers/index.d.ts +8 -0
- package/dist/layers/maplibre/canvas/VLayerMaplibreCanvas.vue.d.ts +25 -0
- package/dist/layers/maplibre/canvas/index.d.ts +1 -0
- package/dist/layers/maplibre/cluster/VLayerMaplibreCluster.vue.d.ts +63 -0
- package/dist/layers/maplibre/cluster/index.d.ts +1 -0
- package/dist/layers/maplibre/geojson/VLayerMaplibreGeojson.vue.d.ts +36 -0
- package/dist/layers/maplibre/geojson/index.d.ts +2 -0
- package/dist/layers/maplibre/geojson/types.d.ts +8 -0
- package/dist/layers/maplibre/image/VLayerMaplibreImage.vue.d.ts +70 -0
- package/dist/layers/maplibre/image/index.d.ts +1 -0
- package/dist/layers/maplibre/pmtile/VLayerMaplibrePmtile.vue.d.ts +60 -0
- package/dist/layers/maplibre/pmtile/index.d.ts +1 -0
- package/dist/layers/maplibre/raster/VLayerMaplibreRaster.vue.d.ts +21 -0
- package/dist/layers/maplibre/raster/index.d.ts +1 -0
- package/dist/layers/maplibre/vector/VLayerMaplibreVector.vue.d.ts +49 -0
- package/dist/layers/maplibre/vector/index.d.ts +1 -0
- package/dist/layers/maplibre/video/VLayerMaplibreVideo.vue.d.ts +70 -0
- package/dist/layers/maplibre/video/index.d.ts +1 -0
- package/dist/map/VMap.vue.d.ts +131 -0
- package/dist/markers/VMarker.vue.d.ts +29 -0
- package/dist/popups/VPopup.vue.d.ts +38 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/injects.d.ts +8 -0
- package/dist/utils/symbols.d.ts +6 -0
- package/package.json +35 -36
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const popupEvents: Array<"open" | "close">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AttributionControlOptions, ControlPosition } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: AttributionControlOptions;
|
|
4
|
+
position?: ControlPosition;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
options: AttributionControlOptions;
|
|
12
|
+
position: ControlPosition;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AttributionControl } from './VControlAttribution.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AttributionControlOptions, ControlPosition } from 'maplibre-gl';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ControlPosition, FullscreenControlOptions } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: FullscreenControlOptions;
|
|
4
|
+
position?: ControlPosition;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
options: FullscreenControlOptions;
|
|
8
|
+
position: ControlPosition;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FullscreenControl } from './VControlFullscreen.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { FullscreenControlOptions, ControlPosition } from 'maplibre-gl';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ControlPosition, GeolocateControlOptions } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: GeolocateControlOptions;
|
|
4
|
+
position?: ControlPosition;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
options: GeolocateControlOptions;
|
|
8
|
+
position: ControlPosition;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const geolocateControlEvents: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GeolocateControl } from './VControlGeolocate.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GeolocateControlOptions, ControlPosition } from 'maplibre-gl';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AttributionControl as VControlAttribution } from './attribution';
|
|
2
|
+
export { FullscreenControl as VControlFullscreen } from './fullscreen';
|
|
3
|
+
export { GeolocateControl as VControlGeolocate } from './geolocate';
|
|
4
|
+
export { NavigationControl as VControlNavigation } from './navigation';
|
|
5
|
+
export { ScaleControl as VControlScale } from './scale';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ControlPosition, NavigationOptions } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: NavigationOptions;
|
|
4
|
+
position?: ControlPosition;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
options: NavigationOptions;
|
|
8
|
+
position: ControlPosition;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NavigationControl } from './VControlNavigation.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ControlPosition, ScaleControlOptions } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: ScaleControlOptions;
|
|
4
|
+
position?: ControlPosition;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
options: ScaleControlOptions;
|
|
12
|
+
position: ControlPosition;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScaleControl } from './VControlScale.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ControlPosition, ScaleControlOptions } from 'maplibre-gl';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VControlAttribution, VControlFullscreen, VControlGeolocate, VControlNavigation, VControlScale } from './controls';
|
|
2
|
+
import { VLayerMaplibreCanvas, VLayerMaplibreGeojson, VLayerMaplibreCluster, VLayerMaplibreImage, VLayerMaplibreRaster, VLayerMaplibreVector, VLayerMaplibreVideo, VLayerMaplibrePmtile } from './layers';
|
|
3
|
+
import VMap from './map/VMap.vue';
|
|
4
|
+
import VMarker from './markers/VMarker.vue';
|
|
5
|
+
import VPopup from './popups/VPopup.vue';
|
|
6
|
+
export { VMap, VMarker, VPopup, VLayerMaplibreCanvas, VLayerMaplibreGeojson, VLayerMaplibreCluster, VLayerMaplibreImage, VLayerMaplibreRaster, VLayerMaplibreVector, VLayerMaplibreVideo, VLayerMaplibrePmtile, VControlAttribution, VControlFullscreen, VControlGeolocate, VControlNavigation, VControlScale, };
|
|
7
|
+
export default VMap;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CanvasLayer as VLayerMaplibreCanvas } from './maplibre/canvas';
|
|
2
|
+
export { GeojsonLayer as VLayerMaplibreGeojson } from './maplibre/geojson';
|
|
3
|
+
export { ImageLayer as VLayerMaplibreImage } from './maplibre/image';
|
|
4
|
+
export { RasterLayer as VLayerMaplibreRaster } from './maplibre/raster';
|
|
5
|
+
export { VectorLayer as VLayerMaplibreVector } from './maplibre/vector';
|
|
6
|
+
export { VideoLayer as VLayerMaplibreVideo } from './maplibre/video';
|
|
7
|
+
export { PmtileLayer as VLayerMaplibrePmtile } from './maplibre/pmtile';
|
|
8
|
+
export { ClusterLayer as VLayerMaplibreCluster } from './maplibre/cluster';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CanvasSourceSpecification, LayerSpecification } from 'maplibre-gl';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
source: CanvasSourceSpecification;
|
|
4
|
+
layer: LayerSpecification;
|
|
5
|
+
sourceId?: string;
|
|
6
|
+
layerId?: string;
|
|
7
|
+
before?: string;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
sourceId: string;
|
|
15
|
+
layerId: string;
|
|
16
|
+
before: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CanvasLayer } from './VLayerMaplibreCanvas.vue';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { GeoJSONSourceSpecification, DataDrivenPropertyValueSpecification } from 'maplibre-gl';
|
|
2
|
+
interface LayerClick {
|
|
3
|
+
features: GeoJSON.Feature[];
|
|
4
|
+
coordinates: {
|
|
5
|
+
lng: number;
|
|
6
|
+
lat: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
sourceId: string;
|
|
11
|
+
baseLayerId: string;
|
|
12
|
+
source: GeoJSONSourceSpecification;
|
|
13
|
+
visibility?: boolean;
|
|
14
|
+
clusterPaint?: {
|
|
15
|
+
colors?: string[];
|
|
16
|
+
radii?: number[];
|
|
17
|
+
};
|
|
18
|
+
unclusteredPaint?: {
|
|
19
|
+
color?: DataDrivenPropertyValueSpecification<string>;
|
|
20
|
+
radius?: number;
|
|
21
|
+
};
|
|
22
|
+
textPaint?: {
|
|
23
|
+
color?: string;
|
|
24
|
+
font?: string[];
|
|
25
|
+
size?: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare var __VLS_1: {};
|
|
29
|
+
type __VLS_Slots = {} & {
|
|
30
|
+
default?: (props: typeof __VLS_1) => any;
|
|
31
|
+
};
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
"cluster-click": (event: LayerClick) => any;
|
|
34
|
+
"point-click": (event: LayerClick) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
36
|
+
"onCluster-click"?: ((event: LayerClick) => any) | undefined;
|
|
37
|
+
"onPoint-click"?: ((event: LayerClick) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
sourceId: string;
|
|
40
|
+
visibility: boolean;
|
|
41
|
+
baseLayerId: string;
|
|
42
|
+
clusterPaint: {
|
|
43
|
+
colors?: string[];
|
|
44
|
+
radii?: number[];
|
|
45
|
+
};
|
|
46
|
+
unclusteredPaint: {
|
|
47
|
+
color?: DataDrivenPropertyValueSpecification<string>;
|
|
48
|
+
radius?: number;
|
|
49
|
+
};
|
|
50
|
+
textPaint: {
|
|
51
|
+
color?: string;
|
|
52
|
+
font?: string[];
|
|
53
|
+
size?: number;
|
|
54
|
+
};
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
57
|
+
declare const _default: typeof __VLS_export;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ClusterLayer } from './VLayerMaplibreCluster.vue';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { GeoJSONSourceSpecification, LayerSpecification } from 'maplibre-gl';
|
|
2
|
+
interface LayerClick {
|
|
3
|
+
features: GeoJSON.Feature[];
|
|
4
|
+
coordinates: {
|
|
5
|
+
lng: number;
|
|
6
|
+
lat: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
sourceId: string;
|
|
11
|
+
layerId: string;
|
|
12
|
+
source: GeoJSONSourceSpecification;
|
|
13
|
+
layer: LayerSpecification;
|
|
14
|
+
before?: string;
|
|
15
|
+
}
|
|
16
|
+
declare var __VLS_1: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_1) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"on-click": (event: LayerClick) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
23
|
+
"onOn-click"?: ((event: LayerClick) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
sourceId: string;
|
|
26
|
+
layerId: string;
|
|
27
|
+
before: string;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { LayerSpecification as AnyLayer, ImageSourceSpecification as ImageSourceRaw } from 'maplibre-gl';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
sourceId: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
layerId: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
source: {
|
|
19
|
+
type: PropType<ImageSourceRaw>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
layer: {
|
|
23
|
+
type: PropType<AnyLayer>;
|
|
24
|
+
default: () => {};
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
before: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
sourceId: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
layerId: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
source: {
|
|
44
|
+
type: PropType<ImageSourceRaw>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
layer: {
|
|
48
|
+
type: PropType<AnyLayer>;
|
|
49
|
+
default: () => {};
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
before: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {
|
|
58
|
+
layer: AnyLayer;
|
|
59
|
+
sourceId: string;
|
|
60
|
+
layerId: string;
|
|
61
|
+
before: string;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ImageLayer } from './VLayerMaplibreImage.vue';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { RasterLayerSpecification } from 'maplibre-gl';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
sourceId: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
layerId: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
url: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
layer: {
|
|
19
|
+
type: PropType<RasterLayerSpecification>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
before: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
required: false;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
sourceId: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
layerId: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
url: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
layer: {
|
|
44
|
+
type: PropType<RasterLayerSpecification>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
before: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
required: false;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {
|
|
54
|
+
layer: RasterLayerSpecification;
|
|
55
|
+
sourceId: string;
|
|
56
|
+
layerId: string;
|
|
57
|
+
before: string;
|
|
58
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PmtileLayer } from './VLayerMaplibrePmtile.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { RasterSourceSpecification, RasterLayerSpecification } from 'maplibre-gl';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
sourceId: string;
|
|
4
|
+
source: RasterSourceSpecification;
|
|
5
|
+
layerId: string;
|
|
6
|
+
layer: RasterLayerSpecification;
|
|
7
|
+
before?: string;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RasterLayer } from './VLayerMaplibreRaster.vue';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { VectorSourceSpecification, LayerSpecification } from 'maplibre-gl';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
sourceId: string;
|
|
4
|
+
source: VectorSourceSpecification;
|
|
5
|
+
layerId: string;
|
|
6
|
+
layer: LayerSpecification;
|
|
7
|
+
before?: string;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
touchcancel: (...args: any[]) => void;
|
|
15
|
+
touchend: (...args: any[]) => void;
|
|
16
|
+
touchstart: (...args: any[]) => void;
|
|
17
|
+
click: (...args: any[]) => void;
|
|
18
|
+
contextmenu: (...args: any[]) => void;
|
|
19
|
+
dblclick: (...args: any[]) => void;
|
|
20
|
+
mousemove: (...args: any[]) => void;
|
|
21
|
+
mouseup: (...args: any[]) => void;
|
|
22
|
+
mousedown: (...args: any[]) => void;
|
|
23
|
+
mouseout: (...args: any[]) => void;
|
|
24
|
+
mouseover: (...args: any[]) => void;
|
|
25
|
+
mouseenter: (...args: any[]) => void;
|
|
26
|
+
mouseleave: (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onTouchcancel?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
onTouchend?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
onTouchstart?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
onContextmenu?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onDblclick?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onMousemove?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
onMouseup?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onMousedown?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onMouseout?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onMouseover?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
onMouseenter?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as VectorLayer } from './VLayerMaplibreVector.vue';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { LayerSpecification as AnyLayer, VideoSourceSpecification } from 'maplibre-gl';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
sourceId: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
layerId: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
source: {
|
|
19
|
+
type: PropType<VideoSourceSpecification>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
layer: {
|
|
23
|
+
type: PropType<AnyLayer>;
|
|
24
|
+
default: () => {};
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
before: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
sourceId: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
layerId: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
source: {
|
|
44
|
+
type: PropType<VideoSourceSpecification>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
layer: {
|
|
48
|
+
type: PropType<AnyLayer>;
|
|
49
|
+
default: () => {};
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
before: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {
|
|
58
|
+
layer: AnyLayer;
|
|
59
|
+
sourceId: string;
|
|
60
|
+
layerId: string;
|
|
61
|
+
before: string;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as VideoLayer } from './VLayerMaplibreVideo.vue';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { MapOptions } from 'maplibre-gl';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: MapOptions;
|
|
4
|
+
supportPmtiles?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_3) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
error: (...args: any[]) => void;
|
|
14
|
+
load: (...args: any[]) => void;
|
|
15
|
+
idle: (...args: any[]) => void;
|
|
16
|
+
remove: (...args: any[]) => void;
|
|
17
|
+
render: (...args: any[]) => void;
|
|
18
|
+
resize: (...args: any[]) => void;
|
|
19
|
+
webglcontextlost: (...args: any[]) => void;
|
|
20
|
+
webglcontextrestored: (...args: any[]) => void;
|
|
21
|
+
dataloading: (...args: any[]) => void;
|
|
22
|
+
data: (...args: any[]) => void;
|
|
23
|
+
tiledataloading: (...args: any[]) => void;
|
|
24
|
+
sourcedataloading: (...args: any[]) => void;
|
|
25
|
+
styledataloading: (...args: any[]) => void;
|
|
26
|
+
sourcedata: (...args: any[]) => void;
|
|
27
|
+
styledata: (...args: any[]) => void;
|
|
28
|
+
styleimagemissing: (...args: any[]) => void;
|
|
29
|
+
dataabort: (...args: any[]) => void;
|
|
30
|
+
sourcedataabort: (...args: any[]) => void;
|
|
31
|
+
boxzoomcancel: (...args: any[]) => void;
|
|
32
|
+
boxzoomstart: (...args: any[]) => void;
|
|
33
|
+
boxzoomend: (...args: any[]) => void;
|
|
34
|
+
touchcancel: (...args: any[]) => void;
|
|
35
|
+
touchmove: (...args: any[]) => void;
|
|
36
|
+
touchend: (...args: any[]) => void;
|
|
37
|
+
touchstart: (...args: any[]) => void;
|
|
38
|
+
click: (...args: any[]) => void;
|
|
39
|
+
contextmenu: (...args: any[]) => void;
|
|
40
|
+
dblclick: (...args: any[]) => void;
|
|
41
|
+
mousemove: (...args: any[]) => void;
|
|
42
|
+
mouseup: (...args: any[]) => void;
|
|
43
|
+
mousedown: (...args: any[]) => void;
|
|
44
|
+
mouseout: (...args: any[]) => void;
|
|
45
|
+
mouseover: (...args: any[]) => void;
|
|
46
|
+
movestart: (...args: any[]) => void;
|
|
47
|
+
move: (...args: any[]) => void;
|
|
48
|
+
moveend: (...args: any[]) => void;
|
|
49
|
+
zoomstart: (...args: any[]) => void;
|
|
50
|
+
zoom: (...args: any[]) => void;
|
|
51
|
+
zoomend: (...args: any[]) => void;
|
|
52
|
+
rotatestart: (...args: any[]) => void;
|
|
53
|
+
rotate: (...args: any[]) => void;
|
|
54
|
+
rotateend: (...args: any[]) => void;
|
|
55
|
+
dragstart: (...args: any[]) => void;
|
|
56
|
+
drag: (...args: any[]) => void;
|
|
57
|
+
dragend: (...args: any[]) => void;
|
|
58
|
+
pitchstart: (...args: any[]) => void;
|
|
59
|
+
pitch: (...args: any[]) => void;
|
|
60
|
+
pitchend: (...args: any[]) => void;
|
|
61
|
+
wheel: (...args: any[]) => void;
|
|
62
|
+
terrain: (...args: any[]) => void;
|
|
63
|
+
cooperativegestureprevented: (...args: any[]) => void;
|
|
64
|
+
projectiontransition: (...args: any[]) => void;
|
|
65
|
+
loaded: (...args: any[]) => void;
|
|
66
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onIdle?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onRender?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onResize?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onWebglcontextlost?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onWebglcontextrestored?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
onDataloading?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onData?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onTiledataloading?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
onSourcedataloading?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onStyledataloading?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onSourcedata?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
onStyledata?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
onStyleimagemissing?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
onDataabort?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
onSourcedataabort?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
onBoxzoomcancel?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
onBoxzoomstart?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
onBoxzoomend?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
onTouchcancel?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
onTouchmove?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
onTouchend?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
onTouchstart?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
onContextmenu?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
onDblclick?: ((...args: any[]) => any) | undefined;
|
|
95
|
+
onMousemove?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
onMouseup?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
onMousedown?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
onMouseout?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
onMouseover?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
onMovestart?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onMove?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
onMoveend?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
onZoomstart?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
onZoom?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
onZoomend?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
onRotatestart?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onRotate?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
onRotateend?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
onDragstart?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
onDrag?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
onDragend?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onPitchstart?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
onPitch?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onPitchend?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onWheel?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onTerrain?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onCooperativegestureprevented?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onProjectiontransition?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
}>, {
|
|
121
|
+
options: MapOptions;
|
|
122
|
+
supportPmtiles: boolean;
|
|
123
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
124
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
125
|
+
declare const _default: typeof __VLS_export;
|
|
126
|
+
export default _default;
|
|
127
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
128
|
+
new (): {
|
|
129
|
+
$slots: S;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { LngLatLike, MarkerOptions, PopupOptions } from 'maplibre-gl';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
coordinates: LngLatLike | null;
|
|
4
|
+
options?: MarkerOptions;
|
|
5
|
+
popupOptions?: PopupOptions;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {
|
|
9
|
+
setRef: (el: HTMLElement) => void;
|
|
10
|
+
}, __VLS_9: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
markers?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_9) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
options: MarkerOptions;
|
|
18
|
+
coordinates: LngLatLike | null;
|
|
19
|
+
popupOptions: PopupOptions;
|
|
20
|
+
cursor: string;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { LngLatLike, Marker, PopupOptions } from 'maplibre-gl';
|
|
2
|
+
import { Popup } from 'maplibre-gl';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
options: PopupOptions;
|
|
5
|
+
coordinates: LngLatLike;
|
|
6
|
+
marker?: Marker;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
added: (payload: {
|
|
14
|
+
popup: Popup;
|
|
15
|
+
}) => void;
|
|
16
|
+
open: () => void;
|
|
17
|
+
close: () => void;
|
|
18
|
+
removed: () => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onOpen?: (() => any) | undefined;
|
|
21
|
+
onClose?: (() => any) | undefined;
|
|
22
|
+
onAdded?: ((payload: {
|
|
23
|
+
popup: Popup;
|
|
24
|
+
}) => any) | undefined;
|
|
25
|
+
onRemoved?: (() => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
options: PopupOptions;
|
|
28
|
+
coordinates: LngLatLike;
|
|
29
|
+
marker: Marker;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Dependency injection 🥳
|
|
4
|
+
* @param {InjectionKey} key - The key to inject
|
|
5
|
+
* @param {string | undefined} fallback - The fallback value
|
|
6
|
+
* @returns {undefined} - The value
|
|
7
|
+
*/
|
|
8
|
+
export declare function injectStrict<T>(key: InjectionKey<T>, fallback?: T): T;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Map } from 'maplibre-gl';
|
|
2
|
+
import type { Protocol } from 'pmtiles';
|
|
3
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
4
|
+
declare const MapKey: InjectionKey<Ref<Map | null>>;
|
|
5
|
+
declare const PMTileProtocolKey: InjectionKey<Protocol | null>;
|
|
6
|
+
export { MapKey, PMTileProtocolKey };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geoql/v-maplibre",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Vue 3 components for MapLibre GL - reactive map components with full TypeScript support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,36 +19,50 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "vite build && vue-tsc --project tsconfig.build.json",
|
|
25
|
+
"preview": "vite preview",
|
|
26
|
+
"test": "vitest",
|
|
27
|
+
"test:ui": "vitest --ui",
|
|
28
|
+
"test:coverage": "vitest --coverage",
|
|
29
|
+
"lint": "oxlint",
|
|
30
|
+
"lint:fix": "oxlint --fix",
|
|
31
|
+
"format": "prettier --write .",
|
|
32
|
+
"format:check": "prettier --check .",
|
|
33
|
+
"prepare": "husky || true",
|
|
34
|
+
"release": "release-it",
|
|
35
|
+
"prepublishOnly": "bun run lint && bun run format:check && bun run test:coverage && bun run build"
|
|
36
|
+
},
|
|
22
37
|
"peerDependencies": {
|
|
23
38
|
"vue": "^3.5.0"
|
|
24
39
|
},
|
|
25
40
|
"dependencies": {
|
|
26
|
-
"maplibre-gl": "^5.
|
|
41
|
+
"maplibre-gl": "^5.14.0",
|
|
27
42
|
"pmtiles": "^4.3.0"
|
|
28
43
|
},
|
|
29
44
|
"devDependencies": {
|
|
30
|
-
"@awmottaz/prettier-plugin-void-html": "^
|
|
31
|
-
"@commitlint/cli": "^20.
|
|
32
|
-
"@commitlint/config-conventional": "^20.
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@vitest/
|
|
38
|
-
"@vitest/ui": "^4.0.13",
|
|
45
|
+
"@awmottaz/prettier-plugin-void-html": "^2.0.0",
|
|
46
|
+
"@commitlint/cli": "^20.2.0",
|
|
47
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
48
|
+
"@release-it/conventional-changelog": "^10.0.3",
|
|
49
|
+
"@types/node": "^25.0.1",
|
|
50
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
51
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
52
|
+
"@vitest/ui": "^4.0.15",
|
|
39
53
|
"@vue/test-utils": "^2.4.6",
|
|
40
|
-
"happy-dom": "^20.0.
|
|
54
|
+
"happy-dom": "^20.0.11",
|
|
41
55
|
"husky": "^9.1.7",
|
|
56
|
+
"is-ci": "^4.1.0",
|
|
42
57
|
"lint-staged": "^16.2.7",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"release-it": "^19.0.6",
|
|
58
|
+
"oxlint": "^1.32.0",
|
|
59
|
+
"prettier": "^3.7.4",
|
|
60
|
+
"release-it": "^19.1.0",
|
|
47
61
|
"typescript": "^5.9.3",
|
|
48
|
-
"vite": "^7.2.
|
|
49
|
-
"vitest": "^4.0.
|
|
62
|
+
"vite": "^7.2.7",
|
|
63
|
+
"vitest": "^4.0.15",
|
|
50
64
|
"vue": "^3.5.25",
|
|
51
|
-
"vue-tsc": "^3.1.
|
|
65
|
+
"vue-tsc": "^3.1.8"
|
|
52
66
|
},
|
|
53
67
|
"publishConfig": {
|
|
54
68
|
"access": "public"
|
|
@@ -83,20 +97,5 @@
|
|
|
83
97
|
"email": "inbox.vinayak@gmail.com",
|
|
84
98
|
"url": "https://vinayakkulkarni.dev"
|
|
85
99
|
},
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
89
|
-
"preview": "vite preview",
|
|
90
|
-
"test": "vitest",
|
|
91
|
-
"test:ui": "vitest --ui",
|
|
92
|
-
"test:coverage": "vitest --coverage",
|
|
93
|
-
"lint": "oxlint",
|
|
94
|
-
"lint:fix": "oxlint --fix",
|
|
95
|
-
"format": "prettier --write .",
|
|
96
|
-
"format:check": "prettier --check .",
|
|
97
|
-
"docs:dev": "nuxi dev docs",
|
|
98
|
-
"docs:build": "nuxi generate docs",
|
|
99
|
-
"docs:preview": "nuxi preview docs",
|
|
100
|
-
"release": "release-it"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
100
|
+
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b"
|
|
101
|
+
}
|