@spuermomonga/vue3-bmapgl 0.0.5 → 0.0.7
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/index.js +435 -26
- package/dist/index.prod.js +1 -1
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.mjs +1 -0
- package/es/_mixins/index.mjs.map +1 -1
- package/es/_mixins/use-config.mjs +19 -8
- package/es/_mixins/use-config.mjs.map +1 -1
- package/es/_mixins/use-map-instance.d.ts +1 -0
- package/es/_mixins/use-map-instance.mjs +10 -0
- package/es/_mixins/use-map-instance.mjs.map +1 -0
- package/es/_utils/call.d.ts +7 -0
- package/es/_utils/call.mjs +10 -0
- package/es/_utils/call.mjs.map +1 -0
- package/es/_utils/index.d.ts +1 -0
- package/es/_utils/index.mjs +2 -1
- package/es/_utils/index.mjs.map +1 -1
- package/es/_utils/map.d.ts +1 -0
- package/es/_utils/map.mjs +14 -1
- package/es/_utils/map.mjs.map +1 -1
- package/es/components.d.ts +4 -0
- package/es/components.mjs +7 -0
- package/es/components.mjs.map +1 -1
- package/es/config-provider/src/config-provider-props.d.ts +10 -1
- package/es/config-provider/src/config-provider-props.mjs.map +1 -1
- package/es/index.mjs +7 -0
- package/es/index.mjs.map +1 -1
- package/es/layer/tile/index.d.ts +1 -0
- package/es/layer/tile/index.mjs +1 -1
- package/es/layer/tile/src/tile.mjs +1 -1
- package/es/layer/tile/src/tile.mjs.map +1 -1
- package/es/layer/xyz/index.d.ts +3 -0
- package/es/layer/xyz/index.mjs +2 -1
- package/es/layer/xyz/index.mjs.map +1 -1
- package/es/layer/xyz/src/xyz-props.d.ts +62 -0
- package/es/layer/xyz/src/xyz-props.mjs +58 -0
- package/es/layer/xyz/src/xyz-props.mjs.map +1 -0
- package/es/layer/xyz/src/xyz.d.ts +118 -1
- package/es/layer/xyz/src/xyz.mjs +96 -4
- package/es/layer/xyz/src/xyz.mjs.map +1 -1
- package/es/map/index.d.ts +1 -0
- package/es/map/index.mjs +1 -0
- package/es/map/index.mjs.map +1 -1
- package/es/map/src/constants.d.ts +3 -0
- package/es/map/src/constants.mjs +4 -0
- package/es/map/src/constants.mjs.map +1 -0
- package/es/map/src/interface.d.ts +6 -0
- package/es/map/src/interface.mjs +2 -0
- package/es/map/src/interface.mjs.map +1 -0
- package/es/map/src/map-props.d.ts +42 -0
- package/es/map/src/map-props.mjs +42 -1
- package/es/map/src/map-props.mjs.map +1 -1
- package/es/map/src/map.d.ts +91 -0
- package/es/map/src/map.mjs +76 -17
- package/es/map/src/map.mjs.map +1 -1
- package/es/map/src/style/map.module.css.mjs +2 -2
- package/es/overlay/polygon/index.d.ts +3 -0
- package/es/overlay/polygon/index.mjs +2 -1
- package/es/overlay/polygon/index.mjs.map +1 -1
- package/es/overlay/polygon/src/polygon-props.d.ts +51 -0
- package/es/overlay/polygon/src/polygon-props.mjs +51 -0
- package/es/overlay/polygon/src/polygon-props.mjs.map +1 -0
- package/es/overlay/polygon/src/polygon.d.ts +108 -0
- package/es/overlay/polygon/src/polygon.mjs +63 -0
- package/es/overlay/polygon/src/polygon.mjs.map +1 -0
- package/es/overlay/sector/index.d.ts +1 -0
- package/es/overlay/sector/index.mjs +2 -0
- package/es/overlay/sector/index.mjs.map +1 -0
- package/es/overlay/sector/src/sector-props.mjs +2 -0
- package/es/overlay/sector/src/sector-props.mjs.map +1 -0
- package/es/overlay/sector/src/sector.d.ts +2 -0
- package/es/overlay/sector/src/sector.mjs +11 -0
- package/es/overlay/sector/src/sector.mjs.map +1 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +2 -0
- package/lib/_mixins/index.js.map +1 -1
- package/lib/_mixins/use-config.js +19 -8
- package/lib/_mixins/use-config.js.map +1 -1
- package/lib/_mixins/use-map-instance.d.ts +1 -0
- package/lib/_mixins/use-map-instance.js +12 -0
- package/lib/_mixins/use-map-instance.js.map +1 -0
- package/lib/_utils/call.d.ts +7 -0
- package/lib/_utils/call.js +12 -0
- package/lib/_utils/call.js.map +1 -0
- package/lib/_utils/index.d.ts +1 -0
- package/lib/_utils/index.js +3 -0
- package/lib/_utils/index.js.map +1 -1
- package/lib/_utils/map.d.ts +1 -0
- package/lib/_utils/map.js +14 -0
- package/lib/_utils/map.js.map +1 -1
- package/lib/components.d.ts +4 -0
- package/lib/components.js +14 -0
- package/lib/components.js.map +1 -1
- package/lib/config-provider/src/config-provider-props.d.ts +10 -1
- package/lib/config-provider/src/config-provider-props.js.map +1 -1
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -1
- package/lib/layer/tile/index.d.ts +1 -0
- package/lib/layer/tile/index.js +5 -0
- package/lib/layer/tile/index.js.map +1 -1
- package/lib/layer/tile/src/tile.js +1 -1
- package/lib/layer/tile/src/tile.js.map +1 -1
- package/lib/layer/xyz/index.d.ts +3 -0
- package/lib/layer/xyz/index.js +7 -0
- package/lib/layer/xyz/index.js.map +1 -1
- package/lib/layer/xyz/src/xyz-props.d.ts +62 -0
- package/lib/layer/xyz/src/xyz-props.js +60 -0
- package/lib/layer/xyz/src/xyz-props.js.map +1 -0
- package/lib/layer/xyz/src/xyz.d.ts +118 -1
- package/lib/layer/xyz/src/xyz.js +95 -3
- package/lib/layer/xyz/src/xyz.js.map +1 -1
- package/lib/map/index.d.ts +1 -0
- package/lib/map/index.js +2 -0
- package/lib/map/index.js.map +1 -1
- package/lib/map/src/constants.d.ts +3 -0
- package/lib/map/src/constants.js +6 -0
- package/lib/map/src/constants.js.map +1 -0
- package/lib/map/src/interface.d.ts +6 -0
- package/lib/map/src/interface.js +3 -0
- package/lib/map/src/interface.js.map +1 -0
- package/lib/map/src/map-props.d.ts +42 -0
- package/lib/map/src/map-props.js +42 -1
- package/lib/map/src/map-props.js.map +1 -1
- package/lib/map/src/map.d.ts +91 -0
- package/lib/map/src/map.js +75 -16
- package/lib/map/src/map.js.map +1 -1
- package/lib/map/src/style/map.module.css.js +2 -2
- package/lib/overlay/polygon/index.d.ts +3 -0
- package/lib/overlay/polygon/index.js +7 -0
- package/lib/overlay/polygon/index.js.map +1 -1
- package/lib/overlay/polygon/src/polygon-props.d.ts +51 -0
- package/lib/overlay/polygon/src/polygon-props.js +53 -0
- package/lib/overlay/polygon/src/polygon-props.js.map +1 -0
- package/lib/overlay/polygon/src/polygon.d.ts +108 -0
- package/lib/overlay/polygon/src/polygon.js +65 -0
- package/lib/overlay/polygon/src/polygon.js.map +1 -0
- package/lib/overlay/sector/index.d.ts +1 -0
- package/lib/overlay/sector/index.js +8 -0
- package/lib/overlay/sector/index.js.map +1 -0
- package/lib/overlay/sector/src/sector-props.js +3 -0
- package/lib/overlay/sector/src/sector-props.js.map +1 -0
- package/lib/overlay/sector/src/sector.d.ts +2 -0
- package/lib/overlay/sector/src/sector.js +13 -0
- package/lib/overlay/sector/src/sector.js.map +1 -0
- package/package.json +2 -2
- package/es/overlay/polygon/src/Polygon.vue.mjs +0 -11
- package/es/overlay/polygon/src/Polygon.vue.mjs.map +0 -1
- package/lib/overlay/polygon/src/Polygon.vue.js +0 -13
- package/lib/overlay/polygon/src/Polygon.vue.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-config.mjs","sources":["../../src/_mixins/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/_mixins/use-config.ts"],"sourcesContent":["import type { Ref } from 'vue'\r\nimport type { MapConfig } from '../config-provider/src/config-provider-props'\r\nimport type { LoadStatus } from '../config-provider/src/internal-interface'\r\nimport { computed, inject } from 'vue'\r\nimport { configProviderInjectionKey } from '../config-provider'\r\n\r\ntype UseConfigProps = Readonly<{\r\n bordered?: boolean\r\n [key: string]: unknown\r\n}>\r\n\r\nexport default function useConfig(props: UseConfigProps = {}): {\r\n mergedStatusRef: Ref<LoadStatus> | undefined\r\n mergedMapSetRef: Ref<MapConfig>\r\n} {\r\n const
|
|
1
|
+
{"version":3,"file":"use-config.mjs","sources":["../../src/_mixins/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/_mixins/use-config.ts"],"sourcesContent":["import type { Ref } from 'vue'\r\nimport type { MapConfig } from '../config-provider/src/config-provider-props'\r\nimport type { LoadStatus } from '../config-provider/src/internal-interface'\r\nimport { computed, inject } from 'vue'\r\nimport { configProviderInjectionKey } from '../config-provider'\r\n\r\ntype UseConfigProps = Readonly<{\r\n bordered?: boolean\r\n [key: string]: unknown\r\n}>\r\n\r\nexport default function useConfig(props: UseConfigProps = {}): {\r\n mergedStatusRef: Ref<LoadStatus> | undefined\r\n mergedMapSetRef: Ref<MapConfig>\r\n} {\r\n const BConfigProvider = inject(configProviderInjectionKey, null)\r\n return {\r\n mergedStatusRef: BConfigProvider?.mergedStatusRef,\r\n mergedMapSetRef: computed(() => {\r\n const { zoom, center, heading, minZoom, maxZoom, enableScrollWheelZoom, enableDragging, tilt, enableTilt, mapType, enableAutoResize, enableTiltGestures, enableRotate, enableRotateGestures, displayOptions } = props\r\n return {\r\n zoom: zoom ?? BConfigProvider?.mergedMapSetRef.value?.zoom,\r\n center: center ?? BConfigProvider?.mergedMapSetRef.value?.center,\r\n heading: heading ?? BConfigProvider?.mergedMapSetRef.value?.heading,\r\n minZoom: minZoom ?? BConfigProvider?.mergedMapSetRef.value?.minZoom,\r\n maxZoom: maxZoom ?? BConfigProvider?.mergedMapSetRef.value?.maxZoom,\r\n enableScrollWheelZoom: enableScrollWheelZoom ?? BConfigProvider?.mergedMapSetRef.value?.enableScrollWheelZoom,\r\n enableDragging: enableDragging ?? BConfigProvider?.mergedMapSetRef.value?.enableDragging,\r\n tilt: tilt ?? BConfigProvider?.mergedMapSetRef.value?.tilt,\r\n enableTilt: enableTilt ?? BConfigProvider?.mergedMapSetRef.value?.enableTilt,\r\n mapType: mapType ?? BConfigProvider?.mergedMapSetRef.value?.mapType,\r\n enableAutoResize: enableAutoResize ?? BConfigProvider?.mergedMapSetRef.value?.enableAutoResize,\r\n enableTiltGestures: enableTiltGestures ?? BConfigProvider?.mergedMapSetRef.value?.enableTiltGestures,\r\n enableRotate: enableRotate ?? BConfigProvider?.mergedMapSetRef.value?.enableRotate,\r\n enableRotateGestures: enableRotateGestures ?? BConfigProvider?.mergedMapSetRef.value?.enableRotateGestures,\r\n displayOptions: displayOptions ?? BConfigProvider?.mergedMapSetRef.value?.displayOptions,\r\n } as MapConfig\r\n }),\r\n }\r\n}\r\n"],"names":[],"mappings":";;;AAWA,SAAwB,SAAA,CAAU,KAAA,GAAwB,EAAA,EAAE;AAI1D,EAAA,MAAM,eAAA,GAAkB,MAAA,CAAO,0BAAA,EAA4B,IAAI,CAAA;AAC/D,EAAA,OAAO;AAAA,IACL,iBAAiB,eAAA,KAAe,IAAA,IAAf,eAAA,KAAe,MAAA,GAAA,SAAf,eAAA,CAAiB,eAAA;AAAA,IAClC,eAAA,EAAiB,SAAS,MAAK;;AAC7B,MAAA,MAAM,EAAE,IAAA,EAAM,MAAA,EAAQ,OAAA,EAAS,OAAA,EAAS,SAAS,qBAAA,EAAuB,cAAA,EAAgB,IAAA,EAAM,UAAA,EAAY,SAAS,gBAAA,EAAkB,kBAAA,EAAoB,YAAA,EAAc,oBAAA,EAAsB,gBAAc,GAAK,KAAA;AAChN,MAAA,OAAO;AAAA,QACL,MAAM,IAAA,KAAI,IAAA,IAAJ,SAAI,MAAA,GAAJ,IAAA,GAAA,CAAQ,KAAA,eAAA,KAAe,IAAA,IAAf,sCAAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO,IAAA;AAAA,QACtD,QAAQ,MAAA,KAAM,IAAA,IAAN,WAAM,MAAA,GAAN,MAAA,GAAA,CAAU,KAAA,eAAA,KAAe,IAAA,IAAf,sCAAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO,MAAA;AAAA,QAC1D,SAAS,OAAA,KAAO,IAAA,IAAP,YAAO,MAAA,GAAP,OAAA,GAAA,CAAW,KAAA,eAAA,KAAe,IAAA,IAAf,sCAAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO,OAAA;AAAA,QAC5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AAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO,gBAAA;AAAA,QAC9E,oBAAoB,kBAAA,KAAkB,IAAA,IAAlB,uBAAkB,MAAA,GAAlB,kBAAA,GAAA,CAAsB,KAAA,eAAA,KAAe,IAAA,IAAf,sCAAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO,kBAAA;AAAA,QAClF,cAAc,YAAA,KAAY,IAAA,IAAZ,iBAAY,MAAA,GAAZ,YAAA,GAAA,CAAgB,KAAA,eAAA,KAAe,IAAA,IAAf,sCAAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO,YAAA;AAAA,QACtE,sBAAsB,oBAAA,KAAoB,IAAA,IAApB,yBAAoB,MAAA,GAApB,oBAAA,GAAA,CAAwB,KAAA,eAAA,KAAe,IAAA,IAAf,sCAAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO,oBAAA;AAAA,QACtF,gBAAgB,cAAA,KAAc,IAAA,IAAd,mBAAc,MAAA,GAAd,cAAA,GAAA,CAAkB,KAAA,eAAA,KAAe,IAAA,IAAf,sCAAA,gBAAiB,eAAA,CAAgB,KAAA,0CAAO;AAAA;IAE9E,CAAC;AAAA;AAEL;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useMapInstance(): () => BMapGL.Map;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { inject } from 'vue';
|
|
2
|
+
import { mapInjectionKey } from '../map/src/constants.mjs';
|
|
3
|
+
|
|
4
|
+
function useMapInstance() {
|
|
5
|
+
const BMap = inject(mapInjectionKey, null);
|
|
6
|
+
return BMap.mapInstance;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { useMapInstance as default };
|
|
10
|
+
//# sourceMappingURL=use-map-instance.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-map-instance.mjs","sources":["../../src/_mixins/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/_mixins/use-map-instance.ts"],"sourcesContent":["import { inject } from 'vue'\r\nimport { mapInjectionKey } from '../map'\r\n\r\nexport default function useMapInstance() {\r\n const BMap = inject(mapInjectionKey, null)\r\n return BMap!.mapInstance\r\n}\r\n"],"names":[],"mappings":";;;AAGA,SAAwB,cAAA,GAAc;AACpC,EAAA,MAAM,IAAA,GAAO,MAAA,CAAO,eAAA,EAAiB,IAAI,CAAA;AACzC,EAAA,OAAO,IAAA,CAAM,WAAA;AACf;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function call(funcs: MaybeArray<() => void>): void;
|
|
2
|
+
declare function call<A1>(funcs: MaybeArray<(a1: A1) => void>, a1: A1): void;
|
|
3
|
+
declare function call<A1, A2>(funcs: MaybeArray<(a1: A1, a2: A2) => void>, a1: A1, a2: A2): void;
|
|
4
|
+
declare function call<A1, A2, A3>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3) => void>, a1: A1, a2: A2, a3: A3): void;
|
|
5
|
+
declare function call<A1, A2, A3, A4>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3, a4: A4) => void>, a1: A1, a2: A2, a3: A3, a4: A4): void;
|
|
6
|
+
export { call };
|
|
7
|
+
export type MaybeArray<T> = T | T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call.mjs","sources":["../../src/_utils/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/_utils/call.ts"],"sourcesContent":["type AnyFunction = (...args: any[]) => any\r\n\r\nfunction call(funcs: MaybeArray<() => void>): void\r\nfunction call<A1>(funcs: MaybeArray<(a1: A1) => void>, a1: A1): void\r\nfunction call<A1, A2>(\r\n funcs: MaybeArray<(a1: A1, a2: A2) => void>,\r\n a1: A1,\r\n a2: A2,\r\n): void\r\nfunction call<A1, A2, A3>(\r\n funcs: MaybeArray<(a1: A1, a2: A2, a3: A3) => void>,\r\n a1: A1,\r\n a2: A2,\r\n a3: A3,\r\n): void\r\nfunction call<A1, A2, A3, A4>(\r\n funcs: MaybeArray<(a1: A1, a2: A2, a3: A3, a4: A4) => void>,\r\n a1: A1,\r\n a2: A2,\r\n a3: A3,\r\n a4: A4,\r\n): void\r\nfunction call<A extends any[]>(\r\n funcs: AnyFunction[] | AnyFunction,\r\n ...args: A\r\n): void {\r\n if (Array.isArray(funcs)) {\r\n funcs.forEach(func => (call as any)(func, ...args))\r\n } else {\r\n return funcs(...args)\r\n }\r\n}\r\n\r\nexport { call }\r\n\r\nexport type MaybeArray<T> = T | T[]\r\n"],"names":[],"mappings":"AAsBA,SAAS,IAAA,CACP,UACG,IAAA,EAAO;AAEV,EAAA,IAAI,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AACxB,IAAA,KAAA,CAAM,QAAQ,CAAA,IAAA,KAAS,IAAA,CAAa,IAAA,EAAM,GAAG,IAAI,CAAC,CAAA;AAAA,EACpD,CAAA,MAAO;AACL,IAAA,OAAO,KAAA,CAAM,GAAG,IAAI,CAAA;AAAA,EACtB;AACF;;;;"}
|
package/es/_utils/index.d.ts
CHANGED
package/es/_utils/index.mjs
CHANGED
package/es/_utils/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/es/_utils/map.d.ts
CHANGED
package/es/_utils/map.mjs
CHANGED
|
@@ -39,6 +39,19 @@ function loader(options) {
|
|
|
39
39
|
document.body.appendChild(script);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
+
function listToMapPoints(points) {
|
|
43
|
+
if (!points || points.length === 0) {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
const first = points[0];
|
|
47
|
+
if (Array.isArray(first)) {
|
|
48
|
+
return points.map(([lng, lat]) => new BMapGL.Point(lng, lat));
|
|
49
|
+
}
|
|
50
|
+
if (typeof first === "string") {
|
|
51
|
+
return points;
|
|
52
|
+
}
|
|
53
|
+
return points;
|
|
54
|
+
}
|
|
42
55
|
|
|
43
|
-
export { loader };
|
|
56
|
+
export { listToMapPoints, loader };
|
|
44
57
|
//# sourceMappingURL=map.mjs.map
|
package/es/_utils/map.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.mjs","sources":["../../src/_utils/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/_utils/map.ts"],"sourcesContent":["export interface LoaderOptions {\r\n key: string\r\n src: string\r\n addCalToWindow?: boolean\r\n timeout?: number\r\n}\r\n\r\nlet isScriptLoaded = false\r\n\r\nexport function loader(options: LoaderOptions): Promise<void> {\r\n const {\r\n key,\r\n src,\r\n addCalToWindow = true,\r\n timeout = 10000,\r\n } = options\r\n\r\n if (isScriptLoaded && window.BMapGL) {\r\n return Promise.resolve()\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n const script = document.createElement('script')\r\n script.src = src\r\n script.type = 'text/javascript'\r\n script.defer = true\r\n\r\n const cleanup = () => {\r\n script.onload = null\r\n script.onerror = null\r\n if (document.body.contains(script)) {\r\n document.body.removeChild(script)\r\n }\r\n }\r\n\r\n const timer = setTimeout(() => {\r\n cleanup()\r\n reject(new Error(`Script load timeout: ${src}`))\r\n }, timeout)\r\n\r\n const handleLoad = () => {\r\n clearTimeout(timer)\r\n isScriptLoaded = true\r\n cleanup()\r\n resolve()\r\n }\r\n\r\n if (addCalToWindow) {\r\n (window as any)[key] = handleLoad\r\n } else {\r\n script.onload = handleLoad\r\n }\r\n\r\n script.onerror = () => {\r\n clearTimeout(timer)\r\n cleanup()\r\n reject(new Error(`Failed to load script: ${src}`))\r\n }\r\n\r\n document.body.appendChild(script)\r\n })\r\n}\r\n"],"names":[],"mappings":"AAOA,IAAI,cAAA,GAAiB,KAAA;AAEf,SAAU,OAAO,OAAA,EAAsB;AAC3C,EAAA,MAAM,EACJ,GAAA,EACA,GA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K,CAAA;AAClB,MAAA,OAAA;AACA,MAAA,MAAA,CAAO,IAAI,KAAA,CAAM,CAAA,uBAAA,EAA0B,GAAG,EAAE,CAAC,CAAA;AAAA,IACnD,CAAA;AAEA,IAAA,QAAA,CAAS,IAAA,CAAK,YAAY,MAAM,CAAA;AAAA,EAClC,CAAC,CAAA;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"map.mjs","sources":["../../src/_utils/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/_utils/map.ts"],"sourcesContent":["export interface LoaderOptions {\r\n key: string\r\n src: string\r\n addCalToWindow?: boolean\r\n timeout?: number\r\n}\r\n\r\nlet isScriptLoaded = false\r\n\r\nexport function loader(options: LoaderOptions): Promise<void> {\r\n const {\r\n key,\r\n src,\r\n addCalToWindow = true,\r\n timeout = 10000,\r\n } = options\r\n\r\n if (isScriptLoaded && window.BMapGL) {\r\n return Promise.resolve()\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n const script = document.createElement('script')\r\n script.src = src\r\n script.type = 'text/javascript'\r\n script.defer = true\r\n\r\n const cleanup = () => {\r\n script.onload = null\r\n script.onerror = null\r\n if (document.body.contains(script)) {\r\n document.body.removeChild(script)\r\n }\r\n }\r\n\r\n const timer = setTimeout(() => {\r\n cleanup()\r\n reject(new Error(`Script load timeout: ${src}`))\r\n }, timeout)\r\n\r\n const handleLoad = () => {\r\n clearTimeout(timer)\r\n isScriptLoaded = true\r\n cleanup()\r\n resolve()\r\n }\r\n\r\n if (addCalToWindow) {\r\n (window as any)[key] = handleLoad\r\n } else {\r\n script.onload = handleLoad\r\n }\r\n\r\n script.onerror = () => {\r\n clearTimeout(timer)\r\n cleanup()\r\n reject(new Error(`Failed to load script: ${src}`))\r\n }\r\n\r\n document.body.appendChild(script)\r\n })\r\n}\r\n\r\nexport function listToMapPoints(points?: BMapGL.Point[] | number[][] | string[]): BMapGL.Point[] {\r\n if (!points || points.length === 0) {\r\n return []\r\n }\r\n\r\n const first = points[0]\r\n\r\n if (Array.isArray(first)) {\r\n return (points as number[][]).map(([lng, lat]) => new BMapGL.Point(lng, lat))\r\n }\r\n\r\n if (typeof first === 'string') {\r\n return points as BMapGL.Point[]\r\n }\r\n\r\n return points as BMapGL.Point[]\r\n}\r\n"],"names":[],"mappings":"AAOA,IAAI,cAAA,GAAiB,KAAA;AAEf,SAAU,OAAO,OAAA,EAAsB;AAC3C,EAAA,MAAM,EACJ,GAAA,EACA,GAAA,EACA,iBAAiB,IAAA,EACjB,OAAA,GAAU,KAAK,GACb,OAAA;AAEJ,EAAA,IAAI,cAAA,IAAkB,OAAO,MAAA,EAAQ;AACnC,IAAA,OAAO,QAAQ,OAAA,EAAO;AAAA,EACxB;AAEA,EAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAA,KAAU;AACrC,IAAA,MAAM,MAAA,GAAS,QAAA,CAAS,aAAA,CAAc,QAAQ,CAAA;AAC9C,IAAA,MAAA,CAAO,GAAA,GAAM,GAAA;AACb,IAAA,MAAA,CAAO,IAAA,GAAO,iBAAA;AACd,IAAA,MAAA,CAAO,KAAA,GAAQ,IAAA;AAEf,IAAA,MAAM,UAAU,MAAK;AACnB,MAAA,MAAA,CAAO,MAAA,GAAS,IAAA;AAChB,MAAA,MAAA,CAAO,OAAA,GAAU,IAAA;AACjB,MAAA,IAAI,QAAA,CAAS,IAAA,CAAK,QAAA,CAAS,MAAM,CAAA,EAAG;AAClC,QAAA,QAAA,CAAS,IAAA,CAAK,YAAY,MAAM,CAAA;AAAA,MAClC;AAAA,IACF,CAAA;AAEA,IAAA,MAAM,KAAA,GAAQ,WAAW,MAAK;AAC5B,MAAA,OAAA;AACA,MAAA,MAAA,CAAO,IAAI,KAAA,CAAM,CAAA,qBAAA,EAAwB,GAAG,EAAE,CAAC,CAAA;AAAA,IACjD,GAAG,OAAO,CAAA;AAEV,IAAA,MAAM,aAAa,MAAK;AACtB,MAAA,YAAA,CAAa,KAAK,CAAA;AAClB,MAAA,cAAA,GAAiB,IAAA;AACjB,MAAA,OAAA;AACA,MAAA,OAAA;IACF,CAAA;AAEA,IAAA,IAAI,cAAA,EAAgB;AACjB,MAAA,MAAA,CAAe,GAAG,CAAA,GAAI,UAAA;AAAA,IACzB,CAAA,MAAO;AACL,MAAA,MAAA,CAAO,MAAA,GAAS,UAAA;AAAA,IAClB;AAEA,IAAA,MAAA,CAAO,UAAU,MAAK;AACpB,MAAA,YAAA,CAAa,KAAK,CAAA;AAClB,MAAA,OAAA;AACA,MAAA,MAAA,CAAO,IAAI,KAAA,CAAM,CAAA,uBAAA,EAA0B,GAAG,EAAE,CAAC,CAAA;AAAA,IACnD,CAAA;AAEA,IAAA,QAAA,CAAS,IAAA,CAAK,YAAY,MAAM,CAAA;AAAA,EAClC,CAAC,CAAA;AACH;AAEM,SAAU,gBAAgB,MAAA,EAA+C;AAC7E,EAAA,IAAI,CAAC,MAAA,IAAU,MAAA,CAAO,MAAA,KAAW,CAAA,EAAG;AAClC,IAAA,OAAO;EACT;AAEA,EAAA,MAAM,KAAA,GAAQ,OAAO,CAAC,CAAA;AAEtB,EAAA,IAAI,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AACxB,IAAA,OAAQ,MAAA,CAAsB,GAAA,CAAI,CAAC,CAAC,GAAA,EAAK,GAAG,CAAA,KAAM,IAAI,MAAA,CAAO,KAAA,CAAM,GAAA,EAAK,GAAG,CAAC,CAAA;AAAA,EAC9E;AAEA,EAAA,IAAI,OAAO,UAAU,QAAA,EAAU;AAC7B,IAAA,OAAO,MAAA;AAAA,EACT;AAEA,EAAA,OAAO,MAAA;AACT;;;;"}
|
package/es/components.d.ts
CHANGED
package/es/components.mjs
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export { default as BConfigProvider } from './config-provider/src/config-provider.mjs';
|
|
2
2
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
|
3
3
|
export { configProviderInjectionKey } from './config-provider/src/constants.mjs';
|
|
4
|
+
export { default as BTileLayer } from './layer/tile/src/tile.mjs';
|
|
5
|
+
export { default as BXyzLayer } from './layer/xyz/src/xyz.mjs';
|
|
6
|
+
export { xyzLayerProps } from './layer/xyz/src/xyz-props.mjs';
|
|
7
|
+
export { mapInjectionKey } from './map/src/constants.mjs';
|
|
4
8
|
export { default as BMap } from './map/src/map.mjs';
|
|
5
9
|
export { mapProps } from './map/src/map-props.mjs';
|
|
10
|
+
export { default as BPolygon } from './overlay/polygon/src/polygon.mjs';
|
|
11
|
+
export { polygonProps } from './overlay/polygon/src/polygon-props.mjs';
|
|
12
|
+
export { default as BSector } from './overlay/sector/src/sector.mjs';
|
|
6
13
|
//# sourceMappingURL=components.mjs.map
|
package/es/components.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -3,9 +3,18 @@ export interface MapConfig {
|
|
|
3
3
|
minZoom?: number;
|
|
4
4
|
maxZoom?: number;
|
|
5
5
|
zoom?: number;
|
|
6
|
-
|
|
6
|
+
heading?: number;
|
|
7
7
|
center?: BMapGL.Point | string | [number, number];
|
|
8
8
|
enableScrollWheelZoom?: boolean;
|
|
9
|
+
enableDragging?: boolean;
|
|
10
|
+
tilt?: number;
|
|
11
|
+
enableTilt?: boolean;
|
|
12
|
+
mapType?: BMapGL.MapTypeId;
|
|
13
|
+
enableAutoResize?: boolean;
|
|
14
|
+
enableTiltGestures?: boolean;
|
|
15
|
+
enableRotate?: boolean;
|
|
16
|
+
enableRotateGestures?: boolean;
|
|
17
|
+
displayOptions?: BMapGL.displayOptions;
|
|
9
18
|
}
|
|
10
19
|
export declare const configProviderProps: {
|
|
11
20
|
readonly ak: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-provider-props.mjs","sources":["../../../src/config-provider/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/config-provider/src/config-provider-props.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\r\n\r\nexport interface MapConfig {\r\n minZoom?: number\r\n maxZoom?: number\r\n zoom?: number\r\n showControls?: boolean\r\n center?: BMapGL.Point | string | [number, number]\r\n enableScrollWheelZoom?: boolean\r\n}\r\n\r\nexport const configProviderProps = {\r\n ak: String,\r\n apiUrl: String,\r\n plugins: Array as PropType<string[]>,\r\n mapConfig: Object as PropType<MapConfig>,\r\n} as const\r\n\r\nexport type ConfigProviderProps = Partial<ExtractPropTypes<typeof configProviderProps>>\r\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config-provider-props.mjs","sources":["../../../src/config-provider/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/config-provider/src/config-provider-props.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\r\n\r\nexport interface MapConfig {\r\n minZoom?: number\r\n maxZoom?: number\r\n zoom?: number\r\n heading?: number\r\n // showControls?: boolean\r\n center?: BMapGL.Point | string | [number, number]\r\n enableScrollWheelZoom?: boolean\r\n enableDragging?: boolean\r\n tilt?: number\r\n enableTilt?: boolean\r\n mapType?: BMapGL.MapTypeId\r\n enableAutoResize?: boolean\r\n enableTiltGestures?: boolean\r\n enableRotate?: boolean\r\n enableRotateGestures?: boolean\r\n displayOptions?: BMapGL.displayOptions\r\n}\r\n\r\nexport const configProviderProps = {\r\n ak: String,\r\n apiUrl: String,\r\n plugins: Array as PropType<string[]>,\r\n mapConfig: Object as PropType<MapConfig>,\r\n} as const\r\n\r\nexport type ConfigProviderProps = Partial<ExtractPropTypes<typeof configProviderProps>>\r\n"],"names":[],"mappings":"AAqBO,MAAM,mBAAA,GAAsB;AAAA,EACjC,EAAA,EAAI,MAAA;AAAA,EACJ,MAAA,EAAQ,MAAA;AAAA,EACR,OAAA,EAAS,KAAA;AAAA,EACT,SAAA,EAAW;;;;;"}
|
package/es/index.mjs
CHANGED
|
@@ -2,6 +2,13 @@ export { default as create } from './create.mjs';
|
|
|
2
2
|
export { default as BConfigProvider } from './config-provider/src/config-provider.mjs';
|
|
3
3
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
|
4
4
|
export { configProviderInjectionKey } from './config-provider/src/constants.mjs';
|
|
5
|
+
export { default as BTileLayer } from './layer/tile/src/tile.mjs';
|
|
6
|
+
export { default as BXyzLayer } from './layer/xyz/src/xyz.mjs';
|
|
7
|
+
export { xyzLayerProps } from './layer/xyz/src/xyz-props.mjs';
|
|
8
|
+
export { mapInjectionKey } from './map/src/constants.mjs';
|
|
5
9
|
export { default as BMap } from './map/src/map.mjs';
|
|
6
10
|
export { mapProps } from './map/src/map-props.mjs';
|
|
11
|
+
export { default as BPolygon } from './overlay/polygon/src/polygon.mjs';
|
|
12
|
+
export { polygonProps } from './overlay/polygon/src/polygon-props.mjs';
|
|
13
|
+
export { default as BSector } from './overlay/sector/src/sector.mjs';
|
|
7
14
|
//# sourceMappingURL=index.mjs.map
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BTileLayer } from './src/tile';
|
package/es/layer/tile/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { default as BTileLayer } from './src/tile.mjs';
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile.mjs","sources":["../../../../src/layer/tile/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/tile/src/tile.tsx"],"sourcesContent":["import { defineComponent } from
|
|
1
|
+
{"version":3,"file":"tile.mjs","sources":["../../../../src/layer/tile/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/tile/src/tile.tsx"],"sourcesContent":["import { defineComponent } from 'vue'\r\n\r\nexport default defineComponent({\r\n name: 'TileLayer',\r\n setup() {\r\n return () => <div>Tile</div>\r\n },\r\n})\r\n"],"names":["name","setup","_createVNode","_createTextVNode"],"mappings":";;AAEA,2CAA+B;AAAA,EAC7BA,IAAAA,EAAM,WAAA;AAAA,EACNC,KAAAA,GAAK;AACH,IAAA,OAAO,MAAAC,YAAA,KAAA,EAAA,IAAA,EAAA,CAAAC,eAAAA,CAAA,MAAA,CAAA,CAAA,CAAA;AAAA,EACT;AACD,CAAA,CAAA;;;;"}
|
package/es/layer/xyz/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { ExtractPublicPropTypes } from '../../../_utils';
|
|
3
|
+
type TemplateFn = (x: number, y: number, z: number) => number;
|
|
4
|
+
type BTemplateFn = (x: number, y: number, z: number) => string;
|
|
5
|
+
type GetTile = (info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void;
|
|
6
|
+
export declare const xyzLayerProps: {
|
|
7
|
+
readonly visible: {
|
|
8
|
+
readonly type: BooleanConstructor;
|
|
9
|
+
readonly default: true;
|
|
10
|
+
};
|
|
11
|
+
readonly getTile: {
|
|
12
|
+
readonly type: PropType<GetTile>;
|
|
13
|
+
};
|
|
14
|
+
readonly useThumbData: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly xTemplate: {
|
|
19
|
+
readonly type: PropType<TemplateFn>;
|
|
20
|
+
};
|
|
21
|
+
readonly yTemplate: {
|
|
22
|
+
readonly type: PropType<TemplateFn>;
|
|
23
|
+
};
|
|
24
|
+
readonly zTemplate: {
|
|
25
|
+
readonly type: PropType<TemplateFn>;
|
|
26
|
+
};
|
|
27
|
+
readonly bTemplate: {
|
|
28
|
+
readonly type: PropType<BTemplateFn>;
|
|
29
|
+
};
|
|
30
|
+
readonly minZoom: {
|
|
31
|
+
readonly type: NumberConstructor;
|
|
32
|
+
readonly default: 3;
|
|
33
|
+
};
|
|
34
|
+
readonly maxZoom: {
|
|
35
|
+
readonly type: NumberConstructor;
|
|
36
|
+
readonly default: 23;
|
|
37
|
+
};
|
|
38
|
+
readonly extent: {
|
|
39
|
+
readonly type: PropType<number[]>;
|
|
40
|
+
};
|
|
41
|
+
readonly extentCRSIsWGS84: {
|
|
42
|
+
readonly type: BooleanConstructor;
|
|
43
|
+
readonly default: false;
|
|
44
|
+
};
|
|
45
|
+
readonly boundary: {
|
|
46
|
+
readonly type: PropType<string[]>;
|
|
47
|
+
};
|
|
48
|
+
readonly zIndex: {
|
|
49
|
+
readonly type: NumberConstructor;
|
|
50
|
+
readonly default: 1;
|
|
51
|
+
};
|
|
52
|
+
readonly zIndexTop: {
|
|
53
|
+
readonly type: BooleanConstructor;
|
|
54
|
+
readonly default: false;
|
|
55
|
+
};
|
|
56
|
+
readonly tms: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: false;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type XyzLayerProps = ExtractPublicPropTypes<typeof xyzLayerProps>;
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const xyzLayerProps = {
|
|
2
|
+
visible: {
|
|
3
|
+
type: Boolean,
|
|
4
|
+
default: true
|
|
5
|
+
},
|
|
6
|
+
getTile: {
|
|
7
|
+
type: Function
|
|
8
|
+
},
|
|
9
|
+
useThumbData: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false
|
|
12
|
+
},
|
|
13
|
+
xTemplate: {
|
|
14
|
+
type: Function
|
|
15
|
+
},
|
|
16
|
+
yTemplate: {
|
|
17
|
+
type: Function
|
|
18
|
+
},
|
|
19
|
+
zTemplate: {
|
|
20
|
+
type: Function
|
|
21
|
+
},
|
|
22
|
+
bTemplate: {
|
|
23
|
+
type: Function
|
|
24
|
+
},
|
|
25
|
+
minZoom: {
|
|
26
|
+
type: Number,
|
|
27
|
+
default: 3
|
|
28
|
+
},
|
|
29
|
+
maxZoom: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 23
|
|
32
|
+
},
|
|
33
|
+
extent: {
|
|
34
|
+
type: Array
|
|
35
|
+
},
|
|
36
|
+
extentCRSIsWGS84: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
boundary: {
|
|
41
|
+
type: Array
|
|
42
|
+
},
|
|
43
|
+
zIndex: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 1
|
|
46
|
+
},
|
|
47
|
+
zIndexTop: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
tms: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { xyzLayerProps };
|
|
58
|
+
//# sourceMappingURL=xyz-props.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xyz-props.mjs","sources":["../../../../src/layer/xyz/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/xyz/src/xyz-props.ts"],"sourcesContent":["import type { PropType } from 'vue'\r\nimport type { ExtractPublicPropTypes } from '../../../_utils'\r\n\r\ntype TemplateFn = (x: number, y: number, z: number) => number\r\ntype BTemplateFn = (x: number, y: number, z: number) => string\r\ntype GetTile = (info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void\r\n\r\nexport const xyzLayerProps = {\r\n visible: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n getTile: {\r\n type: Function as PropType<GetTile>,\r\n },\r\n useThumbData: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n xTemplate: {\r\n type: Function as PropType<TemplateFn>,\r\n },\r\n yTemplate: {\r\n type: Function as PropType<TemplateFn>,\r\n },\r\n zTemplate: {\r\n type: Function as PropType<TemplateFn>,\r\n },\r\n bTemplate: {\r\n type: Function as PropType<BTemplateFn>,\r\n },\r\n minZoom: {\r\n type: Number,\r\n default: 3,\r\n },\r\n maxZoom: {\r\n type: Number,\r\n default: 23,\r\n },\r\n extent: {\r\n type: Array as PropType<number[]>,\r\n },\r\n extentCRSIsWGS84: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n boundary: {\r\n type: Array as PropType<string[]>,\r\n },\r\n zIndex: {\r\n type: Number,\r\n default: 1,\r\n },\r\n zIndexTop: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n tms: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n} as const\r\n\r\nexport type XyzLayerProps = ExtractPublicPropTypes<typeof xyzLayerProps>\r\n"],"names":[],"mappings":"AAOO,MAAM,aAAA,GAAgB;AAAA,EAC3B,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM;AAAA,GACP;AAAA,EACD,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACP;AAAA,EACD,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,GACP;AAAA,EACD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;;;;;"}
|
|
@@ -1,2 +1,119 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly visible: {
|
|
3
|
+
readonly type: BooleanConstructor;
|
|
4
|
+
readonly default: true;
|
|
5
|
+
};
|
|
6
|
+
readonly getTile: {
|
|
7
|
+
readonly type: import("vue").PropType<(info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void>;
|
|
8
|
+
};
|
|
9
|
+
readonly useThumbData: {
|
|
10
|
+
readonly type: BooleanConstructor;
|
|
11
|
+
readonly default: false;
|
|
12
|
+
};
|
|
13
|
+
readonly xTemplate: {
|
|
14
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
15
|
+
};
|
|
16
|
+
readonly yTemplate: {
|
|
17
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
18
|
+
};
|
|
19
|
+
readonly zTemplate: {
|
|
20
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
21
|
+
};
|
|
22
|
+
readonly bTemplate: {
|
|
23
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => string>;
|
|
24
|
+
};
|
|
25
|
+
readonly minZoom: {
|
|
26
|
+
readonly type: NumberConstructor;
|
|
27
|
+
readonly default: 3;
|
|
28
|
+
};
|
|
29
|
+
readonly maxZoom: {
|
|
30
|
+
readonly type: NumberConstructor;
|
|
31
|
+
readonly default: 23;
|
|
32
|
+
};
|
|
33
|
+
readonly extent: {
|
|
34
|
+
readonly type: import("vue").PropType<number[]>;
|
|
35
|
+
};
|
|
36
|
+
readonly extentCRSIsWGS84: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly boundary: {
|
|
41
|
+
readonly type: import("vue").PropType<string[]>;
|
|
42
|
+
};
|
|
43
|
+
readonly zIndex: {
|
|
44
|
+
readonly type: NumberConstructor;
|
|
45
|
+
readonly default: 1;
|
|
46
|
+
};
|
|
47
|
+
readonly zIndexTop: {
|
|
48
|
+
readonly type: BooleanConstructor;
|
|
49
|
+
readonly default: false;
|
|
50
|
+
};
|
|
51
|
+
readonly tms: {
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly default: false;
|
|
54
|
+
};
|
|
55
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
readonly visible: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
60
|
+
readonly getTile: {
|
|
61
|
+
readonly type: import("vue").PropType<(info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void>;
|
|
62
|
+
};
|
|
63
|
+
readonly useThumbData: {
|
|
64
|
+
readonly type: BooleanConstructor;
|
|
65
|
+
readonly default: false;
|
|
66
|
+
};
|
|
67
|
+
readonly xTemplate: {
|
|
68
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
69
|
+
};
|
|
70
|
+
readonly yTemplate: {
|
|
71
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
72
|
+
};
|
|
73
|
+
readonly zTemplate: {
|
|
74
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
75
|
+
};
|
|
76
|
+
readonly bTemplate: {
|
|
77
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => string>;
|
|
78
|
+
};
|
|
79
|
+
readonly minZoom: {
|
|
80
|
+
readonly type: NumberConstructor;
|
|
81
|
+
readonly default: 3;
|
|
82
|
+
};
|
|
83
|
+
readonly maxZoom: {
|
|
84
|
+
readonly type: NumberConstructor;
|
|
85
|
+
readonly default: 23;
|
|
86
|
+
};
|
|
87
|
+
readonly extent: {
|
|
88
|
+
readonly type: import("vue").PropType<number[]>;
|
|
89
|
+
};
|
|
90
|
+
readonly extentCRSIsWGS84: {
|
|
91
|
+
readonly type: BooleanConstructor;
|
|
92
|
+
readonly default: false;
|
|
93
|
+
};
|
|
94
|
+
readonly boundary: {
|
|
95
|
+
readonly type: import("vue").PropType<string[]>;
|
|
96
|
+
};
|
|
97
|
+
readonly zIndex: {
|
|
98
|
+
readonly type: NumberConstructor;
|
|
99
|
+
readonly default: 1;
|
|
100
|
+
};
|
|
101
|
+
readonly zIndexTop: {
|
|
102
|
+
readonly type: BooleanConstructor;
|
|
103
|
+
readonly default: false;
|
|
104
|
+
};
|
|
105
|
+
readonly tms: {
|
|
106
|
+
readonly type: BooleanConstructor;
|
|
107
|
+
readonly default: false;
|
|
108
|
+
};
|
|
109
|
+
}>> & Readonly<{}>, {
|
|
110
|
+
readonly minZoom: number;
|
|
111
|
+
readonly maxZoom: number;
|
|
112
|
+
readonly visible: boolean;
|
|
113
|
+
readonly useThumbData: boolean;
|
|
114
|
+
readonly extentCRSIsWGS84: boolean;
|
|
115
|
+
readonly zIndex: number;
|
|
116
|
+
readonly zIndexTop: boolean;
|
|
117
|
+
readonly tms: boolean;
|
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
119
|
export default _default;
|
package/es/layer/xyz/src/xyz.mjs
CHANGED
|
@@ -1,9 +1,101 @@
|
|
|
1
|
-
import { defineComponent, createVNode,
|
|
1
|
+
import { defineComponent, onUnmounted, createVNode, Fragment, watch } from 'vue';
|
|
2
|
+
import { xyzLayerProps } from './xyz-props.mjs';
|
|
3
|
+
import useMapInstance from '../../../_mixins/use-map-instance.mjs';
|
|
2
4
|
|
|
3
5
|
var xyz = /* @__PURE__ */ defineComponent({
|
|
4
|
-
name: "
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
name: "XyzLayer",
|
|
7
|
+
props: xyzLayerProps,
|
|
8
|
+
setup(props) {
|
|
9
|
+
const mapInstance = useMapInstance();
|
|
10
|
+
let layer = null;
|
|
11
|
+
const setZIndex = (zIndex) => {
|
|
12
|
+
layer === null || layer === void 0 ? void 0 : layer.setZIndex(zIndex);
|
|
13
|
+
};
|
|
14
|
+
const setBoundary = (boundary) => {
|
|
15
|
+
boundary && !boundary.length ? layer === null || layer === void 0 ? void 0 : layer.addBoundary(boundary) : layer === null || layer === void 0 ? void 0 : layer.clearBoundary();
|
|
16
|
+
};
|
|
17
|
+
const setZIndexTop = (zIndexTop) => {
|
|
18
|
+
zIndexTop && (layer === null || layer === void 0 ? void 0 : layer.setZIndexTop());
|
|
19
|
+
};
|
|
20
|
+
const initLayerOptions = () => {
|
|
21
|
+
const {
|
|
22
|
+
zIndex,
|
|
23
|
+
zIndexTop
|
|
24
|
+
} = props;
|
|
25
|
+
setZIndex(zIndex);
|
|
26
|
+
setZIndexTop(zIndexTop);
|
|
27
|
+
};
|
|
28
|
+
const startWatchProps = () => {
|
|
29
|
+
watch(() => props.zIndex, setZIndex);
|
|
30
|
+
watch(() => props.boundary, setBoundary);
|
|
31
|
+
};
|
|
32
|
+
const init = () => {
|
|
33
|
+
const {
|
|
34
|
+
visible,
|
|
35
|
+
getTile,
|
|
36
|
+
xTemplate,
|
|
37
|
+
yTemplate,
|
|
38
|
+
zTemplate,
|
|
39
|
+
bTemplate,
|
|
40
|
+
minZoom,
|
|
41
|
+
maxZoom,
|
|
42
|
+
extent,
|
|
43
|
+
extentCRSIsWGS84,
|
|
44
|
+
boundary,
|
|
45
|
+
useThumbData,
|
|
46
|
+
tms
|
|
47
|
+
} = props;
|
|
48
|
+
layer = new BMapGL.XYZLayer({
|
|
49
|
+
xTemplate,
|
|
50
|
+
yTemplate,
|
|
51
|
+
zTemplate,
|
|
52
|
+
bTemplate,
|
|
53
|
+
minZoom,
|
|
54
|
+
maxZoom,
|
|
55
|
+
extent,
|
|
56
|
+
extentCRSIsWGS84,
|
|
57
|
+
boundary,
|
|
58
|
+
useThumbData,
|
|
59
|
+
tms
|
|
60
|
+
});
|
|
61
|
+
initLayerOptions();
|
|
62
|
+
if (visible) {
|
|
63
|
+
if (getTile) {
|
|
64
|
+
mapInstance().addTileLayer(layer);
|
|
65
|
+
layer.loadRasterTileData = function(tileInfo, callback) {
|
|
66
|
+
const key = this.getTileKey(tileInfo);
|
|
67
|
+
const handleImageLoad = (image) => {
|
|
68
|
+
image.tileInfo = tileInfo;
|
|
69
|
+
callback && callback(image, key);
|
|
70
|
+
};
|
|
71
|
+
const handleError = () => callback && callback(null, key);
|
|
72
|
+
getTile(tileInfo, (img) => {
|
|
73
|
+
if (typeof img === "string" || img instanceof HTMLCanvasElement) {
|
|
74
|
+
const image = new Image();
|
|
75
|
+
image.crossOrigin = "anonymous";
|
|
76
|
+
image.onload = () => handleImageLoad(image);
|
|
77
|
+
image.onerror = handleError;
|
|
78
|
+
image.src = typeof img === "string" ? img : img.toDataURL();
|
|
79
|
+
} else if (img instanceof HTMLImageElement) {
|
|
80
|
+
handleImageLoad(img);
|
|
81
|
+
} else {
|
|
82
|
+
handleError();
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
} else {
|
|
87
|
+
mapInstance().addTileLayer(layer);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
startWatchProps();
|
|
91
|
+
};
|
|
92
|
+
init();
|
|
93
|
+
onUnmounted(() => {
|
|
94
|
+
if (layer) {
|
|
95
|
+
mapInstance().removeTileLayer(layer);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return () => createVNode(Fragment, null, null);
|
|
7
99
|
}
|
|
8
100
|
});
|
|
9
101
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xyz.mjs","sources":["../../../../src/layer/xyz/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/xyz/src/xyz.tsx"],"sourcesContent":["import { defineComponent } from
|
|
1
|
+
{"version":3,"file":"xyz.mjs","sources":["../../../../src/layer/xyz/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/xyz/src/xyz.tsx"],"sourcesContent":["import { defineComponent, onUnmounted, watch } from 'vue'\r\nimport { useMapInstance } from '../../../_mixins'\r\nimport { xyzLayerProps } from './xyz-props'\r\n\r\nexport default defineComponent({\r\n name: 'XyzLayer',\r\n props: xyzLayerProps,\r\n setup(props) {\r\n const mapInstance = useMapInstance()\r\n\r\n let layer: BMapGL.XYZLayer | null = null\r\n\r\n const setZIndex = (zIndex: number) => {\r\n layer?.setZIndex(zIndex)\r\n }\r\n\r\n const setBoundary = (boundary?: string[]) => {\r\n boundary && !boundary.length ? layer?.addBoundary(boundary) : layer?.clearBoundary()\r\n }\r\n\r\n const setZIndexTop = (zIndexTop?: boolean) => {\r\n zIndexTop && layer?.setZIndexTop()\r\n }\r\n\r\n const initLayerOptions = () => {\r\n const { zIndex, zIndexTop } = props\r\n setZIndex(zIndex)\r\n setZIndexTop(zIndexTop)\r\n }\r\n\r\n const startWatchProps = () => {\r\n watch(() => props.zIndex, setZIndex)\r\n watch(() => props.boundary, setBoundary)\r\n }\r\n\r\n const init = () => {\r\n const { visible, getTile, xTemplate, yTemplate, zTemplate, bTemplate, minZoom, maxZoom, extent, extentCRSIsWGS84, boundary, useThumbData, tms } = props\r\n layer = new BMapGL.XYZLayer({\r\n xTemplate,\r\n yTemplate,\r\n zTemplate,\r\n bTemplate,\r\n minZoom,\r\n maxZoom,\r\n extent: extent as any,\r\n extentCRSIsWGS84,\r\n boundary,\r\n useThumbData,\r\n tms,\r\n })\r\n initLayerOptions()\r\n if (visible) {\r\n if (getTile) {\r\n mapInstance().addTileLayer(layer)\r\n ;(layer as any).loadRasterTileData = function (tileInfo: any, callback: any) {\r\n const key = this.getTileKey(tileInfo)\r\n\r\n const handleImageLoad = (image: HTMLImageElement) => {\r\n (image as any).tileInfo = tileInfo\r\n callback && callback(image, key)\r\n }\r\n\r\n const handleError = () => callback && callback(null, key)\r\n\r\n getTile(tileInfo, (img) => {\r\n if (typeof img === 'string' || img instanceof HTMLCanvasElement) {\r\n const image = new Image()\r\n image.crossOrigin = 'anonymous'\r\n\r\n image.onload = () => handleImageLoad(image)\r\n image.onerror = handleError\r\n\r\n image.src = typeof img === 'string' ? img : img.toDataURL()\r\n } else if (img instanceof HTMLImageElement) {\r\n handleImageLoad(img)\r\n } else {\r\n handleError()\r\n }\r\n })\r\n }\r\n } else {\r\n mapInstance().addTileLayer(layer)\r\n }\r\n }\r\n startWatchProps()\r\n }\r\n\r\n init()\r\n\r\n // const addTileLayer = (layer: BMapGL.XYZLayer) => {\r\n // const { getTile } = props.options\r\n // if (getTile) {\r\n // mapInstance().addTileLayer(layer)\r\n // ;(layer as any).loadRasterTileData = function (tileInfo: any, callback: any) {\r\n // const key = this.getTileKey(tileInfo)\r\n\r\n // const handleImageLoad = (image: HTMLImageElement) => {\r\n // (image as any).tileInfo = tileInfo\r\n // callback && callback(image, key)\r\n // }\r\n\r\n // const handleError = () => callback && callback(null, key)\r\n\r\n // getTile(tileInfo, (img) => {\r\n // if (typeof img === 'string' || img instanceof HTMLCanvasElement) {\r\n // const image = new Image()\r\n // image.crossOrigin = 'anonymous'\r\n\r\n // image.onload = () => handleImageLoad(image)\r\n // image.onerror = handleError\r\n\r\n // image.src = typeof img === 'string' ? img : img.toDataURL()\r\n // } else if (img instanceof HTMLImageElement) {\r\n // handleImageLoad(img)\r\n // } else {\r\n // handleError()\r\n // }\r\n // })\r\n // }\r\n // } else {\r\n // mapInstance().addTileLayer(layer)\r\n // }\r\n // }\r\n\r\n // const removeTileLayer = (layer: BMapGL.XYZLayer) => {\r\n // mapInstance().removeTileLayer(layer)\r\n // }\r\n\r\n // const createLayer = () => {\r\n // if (layer) {\r\n // removeTileLayer(layer)\r\n // }\r\n // const { getTile, ...retProps } = props\r\n // layer = new BMapGL.XYZLayer(retProps)\r\n // addTileLayer(layer)\r\n // }\r\n\r\n // props.visible && createLayer()\r\n\r\n // watch(() => props.visible, n => layer && (n ? addTileLayer(layer) : removeTileLayer(layer)))\r\n // watch(() => props.options, () => createLayer())\r\n\r\n onUnmounted(() => {\r\n if (layer) {\r\n mapInstance().removeTileLayer(layer)\r\n }\r\n })\r\n\r\n return () => <></>\r\n },\r\n})\r\n"],"names":["name","props","xyzLayerProps","setup","mapInstance","useMapInstance","layer","setZIndex","zIndex","setBoundary","boundary","length","addBoundary","clearBoundary","setZIndexTop","zIndexTop","initLayerOptions","startWatchProps","watch","init","visible","getTile","xTemplate","yTemplate","zTemplate","bTemplate","minZoom","maxZoom","extent","extentCRSIsWGS84","useThumbData","tms","BMapGL","XYZLayer","addTileLayer","loadRasterTileData","tileInfo","callback","key","getTileKey","handleImageLoad","image","handleError","img","HTMLCanvasElement","Image","crossOrigin","onload","onerror","src","toDataURL","HTMLImageElement","onUnmounted","removeTileLayer","_createVNode","_Fragment"],"mappings":";;;;AAIA,0CAA+B;AAAA,EAC7BA,I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