vue-openlayers-plugin 1.2.1 → 1.2.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/lib/{BasemapPanel-aa284bf3.mjs → BasemapPanel-be1d9cda.mjs} +1 -1
- package/lib/{CoordinateLocationDialog-6c0a6b23.mjs → CoordinateLocationDialog-327017db.mjs} +1 -1
- package/lib/{MapPrintDialog-2e5a22e7.mjs → FilterPanel-fe05a0c3.mjs} +1 -1
- package/lib/{FilterPanel-b91325ac.mjs → LayerPanel-ee56d110.mjs} +1 -1
- package/lib/{LayerPanel-88983648.mjs → MapPrintDialog-8f85faf6.mjs} +1 -1
- package/lib/{MeasurementDialog-ebda57e6.mjs → MeasurementDialog-ad41276e.mjs} +1 -1
- package/lib/{MyMarkersDialog-1f851036.mjs → MyMarkersDialog-f58c3d82.mjs} +1 -1
- package/lib/{QuadCompareDialog-8f624242.mjs → QuadCompareDialog-77717fa0.mjs} +1 -1
- package/lib/{RegionNavigationDialog-549597e1.mjs → RegionNavigationDialog-7f57b172.mjs} +1 -1
- package/lib/{SplitCompareDialog-9bcce145.mjs → SplitCompareDialog-e0053f70.mjs} +1 -1
- package/lib/{SwipeCompareDialog-374b9865.mjs → SwipeCompareDialog-b8a6fb38.mjs} +1 -1
- package/lib/{ViewBookmarksDialog-10b5fe14.mjs → ViewBookmarksDialog-2606fd88.mjs} +1 -1
- package/lib/{index-b9d6884a.mjs → index-9f3d290c.mjs} +1 -1
- package/lib/{index-e8d5fc75.mjs → index-ea6e6f60.mjs} +130 -56
- package/lib/{index.es-ff0f4147.mjs → index.es-c30abac9.mjs} +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +118 -44
- package/lib/style.css +26 -26
- package/package.json +2 -9
- package/types/components/OlControlPanel.vue.d.ts +3 -1
- package/types/components/OlControlPanel.vue.d.ts.map +1 -1
- package/types/components/OlDialogs/LayerPanel.vue.d.ts +12 -0
- package/types/components/OlDialogs/LayerPanel.vue.d.ts.map +1 -1
- package/types/components/OlMap.vue.d.ts +27 -1
- package/types/components/OlMap.vue.d.ts.map +1 -1
- package/types/core/MapManager.d.ts +5 -0
- package/types/core/MapManager.d.ts.map +1 -1
- package/types/index.d.ts +27 -42
- package/types/index.d.ts.map +1 -0
- package/types/lowcode-entry.d.ts +29 -0
- package/types/lowcode-entry.d.ts.map +1 -1
- package/types/types/map.d.ts +11 -0
- package/types/types/map.d.ts.map +1 -1
- package/lib//346/240/207/345/207/206 +0 -159
- package/types/tsconfig.tsbuildinfo +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, onMounted, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
|
|
2
|
-
import { r as resolveBasemapThumbnail, l as layerEventBus, X, b as _export_sfc } from "./index-
|
|
2
|
+
import { r as resolveBasemapThumbnail, l as layerEventBus, X, b as _export_sfc } from "./index-ea6e6f60.mjs";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
4
|
import "ol";
|
|
5
5
|
import "proj4";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, reactive, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { Aim } from "@element-plus/icons-vue";
|
|
3
|
-
import { X, T as TooltipHelper, b as _export_sfc } from "./index-
|
|
3
|
+
import { X, T as TooltipHelper, b as _export_sfc } from "./index-ea6e6f60.mjs";
|
|
4
4
|
import "ol";
|
|
5
5
|
import "proj4";
|
|
6
6
|
import "@supermapgis/iclient-ol";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass } from "vue";
|
|
2
|
-
import { X, f as formatMeasurementResult, b as _export_sfc } from "./index-
|
|
2
|
+
import { X, f as formatMeasurementResult, b as _export_sfc } from "./index-ea6e6f60.mjs";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
4
|
import "ol";
|
|
5
5
|
import "proj4";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, reactive, onUnmounted, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, unref, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, renderList, createBlock, withModifiers, mergeProps } from "vue";
|
|
2
2
|
import { Plus, FolderOpened, Download, Delete, Search, LocationFilled, Edit } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox } from "element-plus";
|
|
4
|
-
import { X, M as MarkerDrawingAdapter, h as fromLonLat, t as toLonLat } from "./index-
|
|
4
|
+
import { X, M as MarkerDrawingAdapter, h as fromLonLat, t as toLonLat } from "./index-ea6e6f60.mjs";
|
|
5
5
|
import "ol";
|
|
6
6
|
import "proj4";
|
|
7
7
|
import "@supermapgis/iclient-ol";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, inject, computed, shallowRef, reactive, watch, nextTick, onMounted, onUnmounted, resolveComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { k as layerFactory, i as getUid, m as defaults, X, n as TileLayer, I as ImageLayer, V as VectorTileLayer, H as HeatmapLayer, o as VectorLayer, L as LayerGroup, b as _export_sfc } from "./index-
|
|
2
|
+
import { k as layerFactory, i as getUid, m as defaults, X, n as TileLayer, I as ImageLayer, V as VectorTileLayer, H as HeatmapLayer, o as VectorLayer, L as LayerGroup, b as _export_sfc } from "./index-ea6e6f60.mjs";
|
|
3
3
|
import { u as useMap } from "./useMap-8e3a2de5.mjs";
|
|
4
4
|
import { View, Map } from "ol";
|
|
5
5
|
import "@element-plus/icons-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, reactive, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, normalizeClass } from "vue";
|
|
2
|
-
import { X } from "./index-
|
|
2
|
+
import { X } from "./index-ea6e6f60.mjs";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
4
|
import "ol";
|
|
5
5
|
import "proj4";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, inject, computed, shallowRef, watch, nextTick, onMounted, onUnmounted, resolveComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { k as layerFactory, i as getUid, m as defaults, X, n as TileLayer, I as ImageLayer, V as VectorTileLayer, H as HeatmapLayer, o as VectorLayer, L as LayerGroup, b as _export_sfc } from "./index-
|
|
2
|
+
import { k as layerFactory, i as getUid, m as defaults, X, n as TileLayer, I as ImageLayer, V as VectorTileLayer, H as HeatmapLayer, o as VectorLayer, L as LayerGroup, b as _export_sfc } from "./index-ea6e6f60.mjs";
|
|
3
3
|
import { u as useMap } from "./useMap-8e3a2de5.mjs";
|
|
4
4
|
import { View, Map } from "ol";
|
|
5
5
|
import "@element-plus/icons-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, inject, computed, shallowRef, watch, nextTick, onMounted, onUnmounted, resolveComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, normalizeClass, normalizeStyle, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { k as layerFactory, i as getUid, m as defaults, X, n as TileLayer, I as ImageLayer, V as VectorTileLayer, H as HeatmapLayer, o as VectorLayer, L as LayerGroup, b as _export_sfc } from "./index-
|
|
2
|
+
import { k as layerFactory, i as getUid, m as defaults, X, n as TileLayer, I as ImageLayer, V as VectorTileLayer, H as HeatmapLayer, o as VectorLayer, L as LayerGroup, b as _export_sfc } from "./index-ea6e6f60.mjs";
|
|
3
3
|
import { u as useMap } from "./useMap-8e3a2de5.mjs";
|
|
4
4
|
import { View, Map } from "ol";
|
|
5
5
|
import { DCaret } from "@element-plus/icons-vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, reactive, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, createElementBlock, Fragment, renderList, withModifiers, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { Plus, Delete, Search, Camera, View, Edit, Location, ZoomIn } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
4
|
-
import { X, t as toLonLat, h as fromLonLat, i as getUid } from "./index-
|
|
4
|
+
import { X, t as toLonLat, h as fromLonLat, i as getUid } from "./index-ea6e6f60.mjs";
|
|
5
5
|
import "ol";
|
|
6
6
|
import "proj4";
|
|
7
7
|
import "@supermapgis/iclient-ol";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject, computed, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, unref, createTextVNode, createCommentVNode, createBlock } from "vue";
|
|
2
2
|
import { Close } from "@element-plus/icons-vue";
|
|
3
|
-
import { b as _export_sfc, D as DrawingManager, X } from "./index-
|
|
3
|
+
import { b as _export_sfc, D as DrawingManager, X } from "./index-ea6e6f60.mjs";
|
|
4
4
|
import "ol";
|
|
5
5
|
import "proj4";
|
|
6
6
|
import "@supermapgis/iclient-ol";
|
|
@@ -242141,7 +242141,7 @@ var Stack = (
|
|
|
242141
242141
|
}()
|
|
242142
242142
|
);
|
|
242143
242143
|
var detectDirectedCycle$1 = detectDirectedCycle$2;
|
|
242144
|
-
const index$
|
|
242144
|
+
const index$5 = {
|
|
242145
242145
|
getAdjMatrix: adjMatrix$1,
|
|
242146
242146
|
breadthFirstSearch: breadthFirstSearch$1,
|
|
242147
242147
|
connectedComponent: getConnectedComponents$1,
|
|
@@ -242178,7 +242178,7 @@ const AlgorithmSync = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
|
|
|
242178
242178
|
breadthFirstSearch: breadthFirstSearch$1,
|
|
242179
242179
|
connectedComponent: getConnectedComponents$1,
|
|
242180
242180
|
cosineSimilarity,
|
|
242181
|
-
default: index$
|
|
242181
|
+
default: index$5,
|
|
242182
242182
|
depthFirstSearch: depthFirstSearch$1,
|
|
242183
242183
|
detectAllCycles: detectAllCycles$1,
|
|
242184
242184
|
detectAllDirectedCycle: detectAllDirectedCycle$1,
|
|
@@ -273845,7 +273845,7 @@ function collide(radius) {
|
|
|
273845
273845
|
};
|
|
273846
273846
|
return force3;
|
|
273847
273847
|
}
|
|
273848
|
-
function index$
|
|
273848
|
+
function index$4(d2) {
|
|
273849
273849
|
return d2.index;
|
|
273850
273850
|
}
|
|
273851
273851
|
function find$2(nodeById, nodeId) {
|
|
@@ -273855,7 +273855,7 @@ function find$2(nodeById, nodeId) {
|
|
|
273855
273855
|
return node;
|
|
273856
273856
|
}
|
|
273857
273857
|
function link(links) {
|
|
273858
|
-
var id = index$
|
|
273858
|
+
var id = index$4, strength = defaultStrength, strengths, distance4 = constant(30), distances, nodes, count2, bias, random2, iterations = 1;
|
|
273859
273859
|
if (links == null)
|
|
273860
273860
|
links = [];
|
|
273861
273861
|
function defaultStrength(link2) {
|
|
@@ -276919,7 +276919,7 @@ function runFloydWarshall(graph2, weightFn, edgeFn) {
|
|
|
276919
276919
|
});
|
|
276920
276920
|
return results;
|
|
276921
276921
|
}
|
|
276922
|
-
const index$
|
|
276922
|
+
const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
276923
276923
|
__proto__: null,
|
|
276924
276924
|
components,
|
|
276925
276925
|
dfs: dfs$1,
|
|
@@ -277080,7 +277080,7 @@ function hasSelfLoop(graph2) {
|
|
|
277080
277080
|
}
|
|
277081
277081
|
return false;
|
|
277082
277082
|
}
|
|
277083
|
-
const index$
|
|
277083
|
+
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
277084
277084
|
__proto__: null,
|
|
277085
277085
|
hasSelfLoop,
|
|
277086
277086
|
isGraph,
|
|
@@ -277100,7 +277100,7 @@ var isGraphComplement = function isGraphComplement2(originGraph, targetGraph) {
|
|
|
277100
277100
|
var nodeCount = originGraph.nodeCount();
|
|
277101
277101
|
return originGraph.edgeCount() + targetGraph.edgeCount() === nodeCount * (nodeCount - 1) / 2;
|
|
277102
277102
|
};
|
|
277103
|
-
const index$
|
|
277103
|
+
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
277104
277104
|
__proto__: null,
|
|
277105
277105
|
containAllSameEdges,
|
|
277106
277106
|
containAllSameNodes,
|
|
@@ -277136,7 +277136,7 @@ var getGraphComplement = function getGraphComplement2(originGraph) {
|
|
|
277136
277136
|
}
|
|
277137
277137
|
return complementGraph;
|
|
277138
277138
|
};
|
|
277139
|
-
const index
|
|
277139
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
277140
277140
|
__proto__: null,
|
|
277141
277141
|
getGraphComplement
|
|
277142
277142
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -277144,10 +277144,10 @@ const es$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
277144
277144
|
__proto__: null,
|
|
277145
277145
|
Graph: Graph$2,
|
|
277146
277146
|
GraphWithEvent,
|
|
277147
|
-
algorithm: index$
|
|
277148
|
-
comparision: index$
|
|
277149
|
-
essence: index$
|
|
277150
|
-
generate: index
|
|
277147
|
+
algorithm: index$3,
|
|
277148
|
+
comparision: index$1,
|
|
277149
|
+
essence: index$2,
|
|
277150
|
+
generate: index
|
|
277151
277151
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
277152
277152
|
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(es$1);
|
|
277153
277153
|
var __extends$r = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
@@ -335988,15 +335988,34 @@ class MapManager {
|
|
|
335988
335988
|
__publicField(this, "drawingManager", null);
|
|
335989
335989
|
__publicField(this, "featureHighlightManager", null);
|
|
335990
335990
|
__publicField(this, "popupManager", null);
|
|
335991
|
+
__publicField(this, "drawingEndListener", null);
|
|
335991
335992
|
// 状态管理
|
|
335992
335993
|
__publicField(this, "isCoordinatePicking", false);
|
|
335993
335994
|
__publicField(this, "coordinatePickCallback", null);
|
|
335994
335995
|
__publicField(this, "measurementType", null);
|
|
335995
335996
|
__publicField(this, "contextMenuCoordinate", [0, 0]);
|
|
335997
|
+
__publicField(this, "ignoreMapClickUntil", 0);
|
|
335996
335998
|
this.config = config;
|
|
335997
335999
|
this.eventBus = eventBus;
|
|
335998
336000
|
this.storage = storage2;
|
|
335999
336001
|
}
|
|
336002
|
+
markDrawingEndIgnoreWindow() {
|
|
336003
|
+
this.ignoreMapClickUntil = Date.now() + 300;
|
|
336004
|
+
}
|
|
336005
|
+
shouldIgnoreMapClick() {
|
|
336006
|
+
return Date.now() < this.ignoreMapClickUntil;
|
|
336007
|
+
}
|
|
336008
|
+
bindDrawingManagerEvents() {
|
|
336009
|
+
if (!this.drawingManager)
|
|
336010
|
+
return;
|
|
336011
|
+
if (this.drawingEndListener) {
|
|
336012
|
+
this.drawingManager.off("drawing-end", this.drawingEndListener);
|
|
336013
|
+
}
|
|
336014
|
+
this.drawingEndListener = () => {
|
|
336015
|
+
this.markDrawingEndIgnoreWindow();
|
|
336016
|
+
};
|
|
336017
|
+
this.drawingManager.on("drawing-end", this.drawingEndListener);
|
|
336018
|
+
}
|
|
336000
336019
|
/**
|
|
336001
336020
|
* 处理要素点击的popup显示
|
|
336002
336021
|
*/
|
|
@@ -336291,6 +336310,7 @@ class MapManager {
|
|
|
336291
336310
|
this.featureHighlightManager = new FeatureHighlightManager(this.map);
|
|
336292
336311
|
this.markerAdapter = new MarkerDrawingAdapter(this.map);
|
|
336293
336312
|
this.drawingManager = new DrawingManager({ map: this.map });
|
|
336313
|
+
this.bindDrawingManagerEvents();
|
|
336294
336314
|
this.measurementTool = new MeasurementTool(this.map, this.storage);
|
|
336295
336315
|
const initialCenter = this.config.center || [116.404, 39.915];
|
|
336296
336316
|
const initialZoom = this.config.zoom || 10;
|
|
@@ -336386,6 +336406,9 @@ class MapManager {
|
|
|
336386
336406
|
}
|
|
336387
336407
|
return;
|
|
336388
336408
|
}
|
|
336409
|
+
if (this.shouldIgnoreMapClick()) {
|
|
336410
|
+
return;
|
|
336411
|
+
}
|
|
336389
336412
|
const featuresAtPixel = [];
|
|
336390
336413
|
this.map.forEachFeatureAtPixel(pixel, (feature, layer2) => {
|
|
336391
336414
|
if (layer2 && feature) {
|
|
@@ -336876,6 +336899,9 @@ class MapManager {
|
|
|
336876
336899
|
const view = this.map.getView();
|
|
336877
336900
|
const projection2 = view.getProjection().getCode();
|
|
336878
336901
|
const lonLatCoordinate = projection2 === "EPSG:4326" || projection2 === "EPSG:4490" ? coordinate : toLonLat(coordinate);
|
|
336902
|
+
if (this.shouldIgnoreMapClick()) {
|
|
336903
|
+
return;
|
|
336904
|
+
}
|
|
336879
336905
|
const features2 = this.map.getFeaturesAtPixel(pixel);
|
|
336880
336906
|
if (features2 && features2.length > 0) {
|
|
336881
336907
|
features2.sort((a3, b10) => {
|
|
@@ -337156,6 +337182,9 @@ class MapManager {
|
|
|
337156
337182
|
* 销毁地图管理器
|
|
337157
337183
|
*/
|
|
337158
337184
|
destroy() {
|
|
337185
|
+
if (this.drawingManager && this.drawingEndListener) {
|
|
337186
|
+
this.drawingManager.off("drawing-end", this.drawingEndListener);
|
|
337187
|
+
}
|
|
337159
337188
|
if (this.map) {
|
|
337160
337189
|
this.map.setTarget(void 0);
|
|
337161
337190
|
}
|
|
@@ -337166,6 +337195,7 @@ class MapManager {
|
|
|
337166
337195
|
this.measurementTool = null;
|
|
337167
337196
|
this.mapOperationTool = null;
|
|
337168
337197
|
this.drawingManager = null;
|
|
337198
|
+
this.drawingEndListener = null;
|
|
337169
337199
|
this.eventCallbacks = {};
|
|
337170
337200
|
this.map = null;
|
|
337171
337201
|
}
|
|
@@ -337395,19 +337425,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
337395
337425
|
}
|
|
337396
337426
|
});
|
|
337397
337427
|
const defaultComponents = {
|
|
337398
|
-
measurement: () => import("./MeasurementDialog-
|
|
337399
|
-
basemap: () => import("./BasemapPanel-
|
|
337400
|
-
print: () => import("./MapPrintDialog-
|
|
337401
|
-
"layer-panel": () => import("./LayerPanel-
|
|
337402
|
-
coordinate: () => import("./CoordinateLocationDialog-
|
|
337403
|
-
"region-navigation": () => import("./RegionNavigationDialog-
|
|
337404
|
-
"my-markers": () => import("./MyMarkersDialog-
|
|
337405
|
-
"view-bookmarks": () => import("./ViewBookmarksDialog-
|
|
337406
|
-
"map-drawing": () => import("./index-
|
|
337407
|
-
"filter-panel": () => import("./FilterPanel-
|
|
337408
|
-
"swipe-compare": () => import("./SwipeCompareDialog-
|
|
337409
|
-
"split-compare": () => import("./SplitCompareDialog-
|
|
337410
|
-
"quad-compare": () => import("./QuadCompareDialog-
|
|
337428
|
+
measurement: () => import("./MeasurementDialog-ad41276e.mjs"),
|
|
337429
|
+
basemap: () => import("./BasemapPanel-be1d9cda.mjs"),
|
|
337430
|
+
print: () => import("./MapPrintDialog-8f85faf6.mjs"),
|
|
337431
|
+
"layer-panel": () => import("./LayerPanel-ee56d110.mjs"),
|
|
337432
|
+
coordinate: () => import("./CoordinateLocationDialog-327017db.mjs"),
|
|
337433
|
+
"region-navigation": () => import("./RegionNavigationDialog-7f57b172.mjs"),
|
|
337434
|
+
"my-markers": () => import("./MyMarkersDialog-f58c3d82.mjs"),
|
|
337435
|
+
"view-bookmarks": () => import("./ViewBookmarksDialog-2606fd88.mjs"),
|
|
337436
|
+
"map-drawing": () => import("./index-9f3d290c.mjs"),
|
|
337437
|
+
"filter-panel": () => import("./FilterPanel-fe05a0c3.mjs"),
|
|
337438
|
+
"swipe-compare": () => import("./SwipeCompareDialog-b8a6fb38.mjs"),
|
|
337439
|
+
"split-compare": () => import("./SplitCompareDialog-e0053f70.mjs"),
|
|
337440
|
+
"quad-compare": () => import("./QuadCompareDialog-77717fa0.mjs")
|
|
337411
337441
|
};
|
|
337412
337442
|
const _DialogRegistry = class _DialogRegistry {
|
|
337413
337443
|
constructor() {
|
|
@@ -339502,7 +339532,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
339502
339532
|
bottomOffset: {},
|
|
339503
339533
|
viewBookmarks: {}
|
|
339504
339534
|
},
|
|
339505
|
-
emits: ["drawing-complete"],
|
|
339535
|
+
emits: ["drawing-complete", "drawing-clear"],
|
|
339506
339536
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
339507
339537
|
const props = __props;
|
|
339508
339538
|
const emit = __emit;
|
|
@@ -339845,6 +339875,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
339845
339875
|
const clearAllDrawnContent = () => {
|
|
339846
339876
|
if (mapManager == null ? void 0 : mapManager.value) {
|
|
339847
339877
|
mapManager.value.clearAll();
|
|
339878
|
+
emit("drawing-clear", {
|
|
339879
|
+
source: "controls",
|
|
339880
|
+
cleared: true,
|
|
339881
|
+
timestamp: Date.now()
|
|
339882
|
+
});
|
|
339848
339883
|
}
|
|
339849
339884
|
};
|
|
339850
339885
|
const buildDrawingResult = (drawing) => {
|
|
@@ -340394,7 +340429,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
340394
340429
|
};
|
|
340395
340430
|
}
|
|
340396
340431
|
});
|
|
340397
|
-
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
340432
|
+
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-2ee216d4"]]);
|
|
340398
340433
|
const _hoisted_1$i = {
|
|
340399
340434
|
key: 0,
|
|
340400
340435
|
class: "ol-legend-header"
|
|
@@ -352995,7 +353030,7 @@ function(t3) {
|
|
|
352995
353030
|
*/
|
|
352996
353031
|
function(t3) {
|
|
352997
353032
|
function e8() {
|
|
352998
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
353033
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-c30abac9.mjs")).catch(function(t4) {
|
|
352999
353034
|
return Promise.reject(new Error("Could not load canvg: " + t4));
|
|
353000
353035
|
}).then(function(t4) {
|
|
353001
353036
|
return t4.default ? t4.default : t4;
|
|
@@ -362747,10 +362782,26 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
362747
362782
|
}
|
|
362748
362783
|
}
|
|
362749
362784
|
};
|
|
362785
|
+
const onLayerConfigUpdated = (event) => {
|
|
362786
|
+
const { layerId, config: nextConfig } = event || {};
|
|
362787
|
+
if (!layerId || !nextConfig)
|
|
362788
|
+
return;
|
|
362789
|
+
const index2 = layers.value.findIndex((layer2) => layer2.id === layerId);
|
|
362790
|
+
if (index2 > -1) {
|
|
362791
|
+
layers.value[index2] = {
|
|
362792
|
+
...layers.value[index2],
|
|
362793
|
+
...nextConfig
|
|
362794
|
+
};
|
|
362795
|
+
layers.value = [...layers.value];
|
|
362796
|
+
return;
|
|
362797
|
+
}
|
|
362798
|
+
initializeLayers();
|
|
362799
|
+
};
|
|
362750
362800
|
onMounted(() => {
|
|
362751
362801
|
if (eventBus == null ? void 0 : eventBus.value) {
|
|
362752
362802
|
eventBus.value.on("layer-added", onLayerAdded);
|
|
362753
362803
|
eventBus.value.on("layer-removed", onLayerRemoved);
|
|
362804
|
+
eventBus.value.on("layer-config-updated", onLayerConfigUpdated);
|
|
362754
362805
|
}
|
|
362755
362806
|
if (layerEventBus) {
|
|
362756
362807
|
layerEventBus.on("layer-visibility-changed", (event) => {
|
|
@@ -362783,6 +362834,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
362783
362834
|
if (eventBus == null ? void 0 : eventBus.value) {
|
|
362784
362835
|
eventBus.value.off("layer-added", onLayerAdded);
|
|
362785
362836
|
eventBus.value.off("layer-removed", onLayerRemoved);
|
|
362837
|
+
eventBus.value.off("layer-config-updated", onLayerConfigUpdated);
|
|
362786
362838
|
}
|
|
362787
362839
|
if (layerEventBus) {
|
|
362788
362840
|
layerEventBus.off("layer-visibility-changed");
|
|
@@ -362815,6 +362867,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
362815
362867
|
};
|
|
362816
362868
|
const layerGroups = computed(() => {
|
|
362817
362869
|
var _a2, _b2, _c2, _d, _e2, _f;
|
|
362870
|
+
const getRuntimePanelGroup = (layer2) => {
|
|
362871
|
+
const panelConfig = layer2.panel;
|
|
362872
|
+
if (!(panelConfig == null ? void 0 : panelConfig.enabled))
|
|
362873
|
+
return null;
|
|
362874
|
+
const groupId = panelConfig.group;
|
|
362875
|
+
if (groupId === "baseLayers" || groupId === "overlayLayers" || groupId === "vectorLayers") {
|
|
362876
|
+
return groupId;
|
|
362877
|
+
}
|
|
362878
|
+
return null;
|
|
362879
|
+
};
|
|
362818
362880
|
const ensureFilterProperty = (layers2) => {
|
|
362819
362881
|
return layers2.map((layer2) => {
|
|
362820
362882
|
if (!layer2.customCss) {
|
|
@@ -362847,14 +362909,34 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
362847
362909
|
};
|
|
362848
362910
|
if (layers.value.length > 0) {
|
|
362849
362911
|
const groups2 = [];
|
|
362850
|
-
const
|
|
362851
|
-
|
|
362912
|
+
const runtimeGroupIds = {
|
|
362913
|
+
baseLayers: /* @__PURE__ */ new Set(),
|
|
362914
|
+
overlayLayers: /* @__PURE__ */ new Set(),
|
|
362915
|
+
vectorLayers: /* @__PURE__ */ new Set()
|
|
362916
|
+
};
|
|
362917
|
+
layers.value.forEach((layer2) => {
|
|
362918
|
+
const runtimeGroup = getRuntimePanelGroup(layer2);
|
|
362919
|
+
if (runtimeGroup) {
|
|
362920
|
+
runtimeGroupIds[runtimeGroup].add(layer2.id);
|
|
362921
|
+
}
|
|
362922
|
+
});
|
|
362923
|
+
const baseLayerIds = /* @__PURE__ */ new Set(
|
|
362924
|
+
[
|
|
362925
|
+
...(((_a2 = config == null ? void 0 : config.value) == null ? void 0 : _a2.baseLayers) || []).map((layer2) => layer2.id),
|
|
362926
|
+
...runtimeGroupIds.baseLayers
|
|
362927
|
+
]
|
|
362852
362928
|
);
|
|
362853
|
-
const overlayLayerIds = new Set(
|
|
362854
|
-
|
|
362929
|
+
const overlayLayerIds = /* @__PURE__ */ new Set(
|
|
362930
|
+
[
|
|
362931
|
+
...(((_b2 = config == null ? void 0 : config.value) == null ? void 0 : _b2.overlayLayers) || []).map((layer2) => layer2.id),
|
|
362932
|
+
...runtimeGroupIds.overlayLayers
|
|
362933
|
+
]
|
|
362855
362934
|
);
|
|
362856
|
-
const vectorLayerIds = new Set(
|
|
362857
|
-
|
|
362935
|
+
const vectorLayerIds = /* @__PURE__ */ new Set(
|
|
362936
|
+
[
|
|
362937
|
+
...(((_c2 = config == null ? void 0 : config.value) == null ? void 0 : _c2.vectorLayers) || []).map((layer2) => layer2.id),
|
|
362938
|
+
...runtimeGroupIds.vectorLayers
|
|
362939
|
+
]
|
|
362858
362940
|
);
|
|
362859
362941
|
const baseLayersList = ensureFilterProperty(
|
|
362860
362942
|
layers.value.filter((layer2) => baseLayerIds.has(layer2.id))
|
|
@@ -362928,9 +363010,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
362928
363010
|
return [];
|
|
362929
363011
|
const buckets = /* @__PURE__ */ new Map();
|
|
362930
363012
|
const getClassification = (layer2) => {
|
|
363013
|
+
var _a2;
|
|
362931
363014
|
const anyLayer = layer2;
|
|
362932
363015
|
const meta = anyLayer.metadata || {};
|
|
362933
|
-
return anyLayer.classificationName ?? meta.classificationName ?? anyLayer.sslx ?? "未分类";
|
|
363016
|
+
return anyLayer.classificationName ?? ((_a2 = anyLayer.panel) == null ? void 0 : _a2.classificationName) ?? meta.classificationName ?? anyLayer.sslx ?? "未分类";
|
|
362934
363017
|
};
|
|
362935
363018
|
const getZ = (id) => {
|
|
362936
363019
|
var _a2;
|
|
@@ -365684,7 +365767,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
365684
365767
|
popupConfig: {},
|
|
365685
365768
|
enableGeolocation: { type: Boolean, default: true }
|
|
365686
365769
|
},
|
|
365687
|
-
emits: ["map-ready", "map-click", "map-dblclick", "map-contextmenu", "map-move", "zoom-change", "feature-click", "tooltip-show", "tooltip-hide", "layer-change", "measurement-change", "measurement-start", "measurement-end", "measurement-result", "context-menu", "bookmark-action", "marker-action", "tool-action", "drawing-complete", "search", "search-select", "search-clear", "popup-show", "popup-hide", "popup-close"],
|
|
365770
|
+
emits: ["map-ready", "map-click", "map-dblclick", "map-contextmenu", "map-move", "zoom-change", "feature-click", "tooltip-show", "tooltip-hide", "layer-change", "measurement-change", "measurement-start", "measurement-end", "measurement-result", "context-menu", "bookmark-action", "marker-action", "tool-action", "drawing-complete", "drawing-clear", "search", "search-select", "search-clear", "popup-show", "popup-hide", "popup-close"],
|
|
365688
365771
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
365689
365772
|
const currentLegends = ref([]);
|
|
365690
365773
|
const currentLayers = ref([]);
|
|
@@ -366549,6 +366632,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
366549
366632
|
const onDrawingComplete = (result) => {
|
|
366550
366633
|
emit("drawing-complete", result);
|
|
366551
366634
|
};
|
|
366635
|
+
const onDrawingClear = (event) => {
|
|
366636
|
+
emit("drawing-clear", event);
|
|
366637
|
+
};
|
|
366552
366638
|
const onPrintAction = (data) => {
|
|
366553
366639
|
console.log("打印操作:", data);
|
|
366554
366640
|
switch (data.action) {
|
|
@@ -367236,7 +367322,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
367236
367322
|
"top-offset": finalControlsConfig.value.topOffset,
|
|
367237
367323
|
"bottom-offset": finalControlsConfig.value.bottomOffset,
|
|
367238
367324
|
"view-bookmarks": props.viewBookmarks,
|
|
367239
|
-
onDrawingComplete
|
|
367325
|
+
onDrawingComplete,
|
|
367326
|
+
onDrawingClear
|
|
367240
367327
|
}, {
|
|
367241
367328
|
custom: withCtx(({ controls }) => [
|
|
367242
367329
|
renderSlot(_ctx.$slots, "controls", {
|
|
@@ -367373,7 +367460,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
367373
367460
|
};
|
|
367374
367461
|
}
|
|
367375
367462
|
});
|
|
367376
|
-
const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
367463
|
+
const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-88e42f18"]]);
|
|
367377
367464
|
const Property = {
|
|
367378
367465
|
ACCURACY: "accuracy",
|
|
367379
367466
|
ACCURACY_GEOMETRY: "accuracyGeometry",
|
|
@@ -370130,23 +370217,10 @@ const install = (app) => {
|
|
|
370130
370217
|
app.component("CustomDialog", _sfc_main$1);
|
|
370131
370218
|
app.component("SvgIcon", _sfc_main);
|
|
370132
370219
|
};
|
|
370133
|
-
const
|
|
370134
|
-
install
|
|
370135
|
-
|
|
370136
|
-
|
|
370137
|
-
MobileNavBar: _sfc_main$6,
|
|
370138
|
-
MobileLayerPanel,
|
|
370139
|
-
MobileBasemapSwitcher,
|
|
370140
|
-
MobileMeasureTool,
|
|
370141
|
-
MobileDrawTool,
|
|
370142
|
-
MobileFeatureInfo,
|
|
370143
|
-
MobileSearch,
|
|
370144
|
-
MobileLegend,
|
|
370145
|
-
CustomOpenlayer: OlMap,
|
|
370146
|
-
CustomDialog: _sfc_main$1,
|
|
370147
|
-
SvgIcon: _sfc_main
|
|
370148
|
-
};
|
|
370149
|
-
const version = "1.0.0";
|
|
370220
|
+
const VueOpenLayersPlugin = {
|
|
370221
|
+
install
|
|
370222
|
+
};
|
|
370223
|
+
const version = "1.2.3";
|
|
370150
370224
|
export {
|
|
370151
370225
|
MapStorage as $,
|
|
370152
370226
|
MobileLayerPanel as A,
|
|
@@ -370165,7 +370239,7 @@ export {
|
|
|
370165
370239
|
_sfc_main as N,
|
|
370166
370240
|
OlMap as O,
|
|
370167
370241
|
install as P,
|
|
370168
|
-
|
|
370242
|
+
VueOpenLayersPlugin as Q,
|
|
370169
370243
|
version as R,
|
|
370170
370244
|
notificationService as S,
|
|
370171
370245
|
TooltipHelper as T,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, _ as _asyncToGenerator, a as _defineProperty } from "./index-
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, _ as _asyncToGenerator, a as _defineProperty } from "./index-ea6e6f60.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
4
|
import "ol";
|
package/lib/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad, a0, K, O, a4, D, aA, a9, ac, aF, aE, ak, al, aw, ax, Y, am, an, aD, aB, $, Z, ay, az, B, E, F, A, J, y, C, z, G, au, av, as, at, aq, ar, x, s, q, w, O as O2, p, u, v, ae, af, ai, aj, ao, ap, aG, N, ag, ah, U, ab, a1, a5, a8, Q, f, W, aa, a6, a2, a3, aC, P, a7, l, S, r, R } from "./index-
|
|
1
|
+
import { ad, a0, K, O, a4, D, aA, a9, ac, aF, aE, ak, al, aw, ax, Y, am, an, aD, aB, $, Z, ay, az, B, E, F, A, J, y, C, z, G, au, av, as, at, aq, ar, x, s, q, w, O as O2, p, u, v, ae, af, ai, aj, ao, ap, aG, N, ag, ah, U, ab, a1, a5, a8, Q, f, W, aa, a6, a2, a3, aC, P, a7, l, S, r, R } from "./index-ea6e6f60.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
4
|
import "ol";
|