vue-openlayers-plugin 1.0.12 → 1.0.13
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/{index-1ac240c1.mjs → index-03592281.mjs} +77 -42
- package/lib/{index.es-e2415460.mjs → index.es-769bacc2.mjs} +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +77 -42
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/src/components/CustomOpenlayer/components/MapContainer.vue.d.ts +11 -2
- package/types/src/components/CustomOpenlayer/components/MapContainer.vue.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/MarkerDrawingAdapter.d.ts +4 -0
- package/types/src/components/CustomOpenlayer/utils/MarkerDrawingAdapter.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/BaseDrawing.d.ts +18 -12
- package/types/src/components/CustomOpenlayer/utils/drawing/BaseDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/DrawingManager.d.ts +12 -12
- package/types/src/components/CustomOpenlayer/utils/drawing/DrawingManager.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/IconDrawing.d.ts +2 -2
- package/types/src/components/CustomOpenlayer/utils/drawing/IconDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/ImageDrawing.d.ts +3 -3
- package/types/src/components/CustomOpenlayer/utils/drawing/ImageDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/LineDrawing.d.ts +2 -2
- package/types/src/components/CustomOpenlayer/utils/drawing/LineDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/MilitaryDrawing.d.ts +2 -2
- package/types/src/components/CustomOpenlayer/utils/drawing/MilitaryDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/PointDrawing.d.ts +4 -4
- package/types/src/components/CustomOpenlayer/utils/drawing/PointDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/PointWithTextDrawing.d.ts +14 -10
- package/types/src/components/CustomOpenlayer/utils/drawing/PointWithTextDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/PolygonDrawing.d.ts +2 -2
- package/types/src/components/CustomOpenlayer/utils/drawing/PolygonDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/TextDrawing.d.ts +3 -3
- package/types/src/components/CustomOpenlayer/utils/drawing/TextDrawing.d.ts.map +1 -1
- package/types/src/components/CustomOpenlayer/utils/drawing/index.d.ts +502 -0
- package/types/src/components/CustomOpenlayer/utils/drawing/index.d.ts.map +1 -0
- package/types/src/components/CustomOpenlayer/utils/mapManager.d.ts +14 -2
- package/types/src/components/CustomOpenlayer/utils/mapManager.d.ts.map +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -9537,7 +9537,7 @@ function createProjection(projection, defaultCode) {
|
|
|
9537
9537
|
projection
|
|
9538
9538
|
);
|
|
9539
9539
|
}
|
|
9540
|
-
function fromLonLat
|
|
9540
|
+
function fromLonLat(coordinate, projection) {
|
|
9541
9541
|
disableCoordinateWarning();
|
|
9542
9542
|
return transform$2(
|
|
9543
9543
|
coordinate,
|
|
@@ -52900,7 +52900,7 @@ class BaseDrawing {
|
|
|
52900
52900
|
setVisible(visible) {
|
|
52901
52901
|
this._visible = visible;
|
|
52902
52902
|
if (this.feature) {
|
|
52903
|
-
this.feature.setStyle(visible ? this.createStyle() :
|
|
52903
|
+
this.feature.setStyle(visible ? this.createStyle() : void 0);
|
|
52904
52904
|
}
|
|
52905
52905
|
}
|
|
52906
52906
|
/**
|
|
@@ -54329,9 +54329,8 @@ class TextDrawingFactory {
|
|
|
54329
54329
|
}
|
|
54330
54330
|
class PointWithTextDrawing extends BaseDrawing {
|
|
54331
54331
|
constructor(config) {
|
|
54332
|
+
var _a2;
|
|
54332
54333
|
super(config);
|
|
54333
|
-
__publicField(this, "_config");
|
|
54334
|
-
__publicField(this, "_style");
|
|
54335
54334
|
this._config = config;
|
|
54336
54335
|
this._style = {
|
|
54337
54336
|
// 点样式默认值
|
|
@@ -54347,7 +54346,7 @@ class PointWithTextDrawing extends BaseDrawing {
|
|
|
54347
54346
|
iconAnchor: [0.5, 0.5],
|
|
54348
54347
|
iconOffset: [0, 0],
|
|
54349
54348
|
// 文字样式默认值
|
|
54350
|
-
textContent: config.style.textContent || "标注",
|
|
54349
|
+
textContent: ((_a2 = config.style) == null ? void 0 : _a2.textContent) || "标注",
|
|
54351
54350
|
fontSize: 12,
|
|
54352
54351
|
fontFamily: "Arial, sans-serif",
|
|
54353
54352
|
fontWeight: "normal",
|
|
@@ -54365,7 +54364,7 @@ class PointWithTextDrawing extends BaseDrawing {
|
|
|
54365
54364
|
textBackgroundPadding: [2, 4, 2, 4],
|
|
54366
54365
|
textStrokeColor: "#ffffff",
|
|
54367
54366
|
textStrokeWidth: 1,
|
|
54368
|
-
...config.style
|
|
54367
|
+
...config.style || {}
|
|
54369
54368
|
};
|
|
54370
54369
|
}
|
|
54371
54370
|
/**
|
|
@@ -54401,7 +54400,10 @@ class PointWithTextDrawing extends BaseDrawing {
|
|
|
54401
54400
|
if (styles.length > 1) {
|
|
54402
54401
|
const textStyleObj = styles.find((s2) => s2.getText());
|
|
54403
54402
|
if (textStyleObj) {
|
|
54404
|
-
|
|
54403
|
+
const text = textStyleObj.getText();
|
|
54404
|
+
if (text) {
|
|
54405
|
+
mainStyle.setText(text);
|
|
54406
|
+
}
|
|
54405
54407
|
}
|
|
54406
54408
|
}
|
|
54407
54409
|
return mainStyle;
|
|
@@ -54448,7 +54450,7 @@ class PointWithTextDrawing extends BaseDrawing {
|
|
|
54448
54450
|
const pointColor = this.addOpacityToColor(this._style.pointColor, this._style.pointOpacity);
|
|
54449
54451
|
switch (this._style.pointStyle) {
|
|
54450
54452
|
case "square":
|
|
54451
|
-
return new
|
|
54453
|
+
return new RegularShape$1({
|
|
54452
54454
|
radius: size,
|
|
54453
54455
|
fill: new Fill$1({ color: pointColor }),
|
|
54454
54456
|
stroke: new Stroke$1({
|
|
@@ -54459,7 +54461,7 @@ class PointWithTextDrawing extends BaseDrawing {
|
|
|
54459
54461
|
angle: Math.PI / 4
|
|
54460
54462
|
});
|
|
54461
54463
|
case "triangle":
|
|
54462
|
-
return new
|
|
54464
|
+
return new RegularShape$1({
|
|
54463
54465
|
radius: size,
|
|
54464
54466
|
fill: new Fill$1({ color: pointColor }),
|
|
54465
54467
|
stroke: new Stroke$1({
|
|
@@ -54469,7 +54471,7 @@ class PointWithTextDrawing extends BaseDrawing {
|
|
|
54469
54471
|
points: 3
|
|
54470
54472
|
});
|
|
54471
54473
|
case "star":
|
|
54472
|
-
return new
|
|
54474
|
+
return new RegularShape$1({
|
|
54473
54475
|
radius: size,
|
|
54474
54476
|
fill: new Fill$1({ color: pointColor }),
|
|
54475
54477
|
stroke: new Stroke$1({
|
|
@@ -54826,7 +54828,7 @@ class PointWithTextDrawingFactory {
|
|
|
54826
54828
|
const style = {
|
|
54827
54829
|
textContent: text,
|
|
54828
54830
|
...presetStyles[preset],
|
|
54829
|
-
...options
|
|
54831
|
+
...options || {}
|
|
54830
54832
|
};
|
|
54831
54833
|
if (options == null ? void 0 : options.pointSize)
|
|
54832
54834
|
style.pointSize = options.pointSize;
|
|
@@ -56744,7 +56746,6 @@ class ImageDrawing extends BaseDrawing {
|
|
|
56744
56746
|
createImageStyle() {
|
|
56745
56747
|
const iconStyle = new Icon$1({
|
|
56746
56748
|
img: this._imageElement,
|
|
56747
|
-
imgSize: this._originalSize,
|
|
56748
56749
|
size: this._style.imageSize,
|
|
56749
56750
|
scale: this._style.imageScale || 1,
|
|
56750
56751
|
rotation: this._style.imageRotation || 0,
|
|
@@ -58190,18 +58191,17 @@ class DrawingManager {
|
|
|
58190
58191
|
* 创建绘制样式
|
|
58191
58192
|
*/
|
|
58192
58193
|
createDrawStyle(mode) {
|
|
58193
|
-
var _a2;
|
|
58194
58194
|
if (!this._currentDrawingStyle) {
|
|
58195
58195
|
return void 0;
|
|
58196
58196
|
}
|
|
58197
58197
|
switch (mode) {
|
|
58198
58198
|
case "point":
|
|
58199
58199
|
case "text":
|
|
58200
|
-
if (
|
|
58200
|
+
if (this._currentDrawingStyle.imageUrl) {
|
|
58201
58201
|
const iconStyle = new Icon$1({
|
|
58202
|
-
src: this._currentDrawingStyle.
|
|
58203
|
-
scale: this._currentDrawingStyle.
|
|
58204
|
-
anchor:
|
|
58202
|
+
src: this._currentDrawingStyle.imageUrl,
|
|
58203
|
+
scale: this._currentDrawingStyle.imageScale || 1,
|
|
58204
|
+
anchor: [0.5, 1],
|
|
58205
58205
|
anchorXUnits: "fraction",
|
|
58206
58206
|
anchorYUnits: "fraction"
|
|
58207
58207
|
});
|
|
@@ -59088,7 +59088,7 @@ function applyDrawingPreset(config, presetType, presetName) {
|
|
|
59088
59088
|
return {
|
|
59089
59089
|
...config,
|
|
59090
59090
|
style: {
|
|
59091
|
-
...config.style,
|
|
59091
|
+
...config.style || {},
|
|
59092
59092
|
...preset
|
|
59093
59093
|
}
|
|
59094
59094
|
};
|
|
@@ -59594,7 +59594,7 @@ class MapOperationTool {
|
|
|
59594
59594
|
}
|
|
59595
59595
|
const view = this.map.getView();
|
|
59596
59596
|
const mapProjection = view.getProjection().getCode();
|
|
59597
|
-
const projectedCenter = mapProjection === "EPSG:4326" ? this.initialCenter : fromLonLat
|
|
59597
|
+
const projectedCenter = mapProjection === "EPSG:4326" ? this.initialCenter : fromLonLat(this.initialCenter);
|
|
59598
59598
|
view.animate({
|
|
59599
59599
|
center: projectedCenter,
|
|
59600
59600
|
zoom: this.initialZoom,
|
|
@@ -59619,7 +59619,7 @@ class MapOperationTool {
|
|
|
59619
59619
|
}
|
|
59620
59620
|
const view = this.map.getView();
|
|
59621
59621
|
const mapProjection = view.getProjection().getCode();
|
|
59622
|
-
const projectedCoordinate = mapProjection === "EPSG:4326" ? [longitude, latitude] : fromLonLat
|
|
59622
|
+
const projectedCoordinate = mapProjection === "EPSG:4326" ? [longitude, latitude] : fromLonLat([longitude, latitude]);
|
|
59623
59623
|
const targetZoom = zoom !== void 0 ? zoom : Math.max(view.getZoom() || 10, 15);
|
|
59624
59624
|
view.animate({
|
|
59625
59625
|
center: projectedCoordinate,
|
|
@@ -59645,7 +59645,7 @@ class MapOperationTool {
|
|
|
59645
59645
|
}
|
|
59646
59646
|
const view = this.map.getView();
|
|
59647
59647
|
const mapProjection = view.getProjection().getCode();
|
|
59648
|
-
const projectedCoordinate = mapProjection === "EPSG:4326" ? [longitude, latitude] : fromLonLat
|
|
59648
|
+
const projectedCoordinate = mapProjection === "EPSG:4326" ? [longitude, latitude] : fromLonLat([longitude, latitude]);
|
|
59649
59649
|
view.animate({
|
|
59650
59650
|
center: projectedCoordinate,
|
|
59651
59651
|
duration: duration2
|
|
@@ -61529,7 +61529,7 @@ class MarkerDrawingAdapter {
|
|
|
61529
61529
|
*/
|
|
61530
61530
|
convertMarkerToDrawingConfig(marker) {
|
|
61531
61531
|
const mapProjection = this.map.getView().getProjection().getCode();
|
|
61532
|
-
const coordinate = mapProjection === "EPSG:4326" ? [marker.longitude, marker.latitude] : fromLonLat
|
|
61532
|
+
const coordinate = mapProjection === "EPSG:4326" ? [marker.longitude, marker.latitude] : fromLonLat([marker.longitude, marker.latitude]);
|
|
61533
61533
|
const style = {
|
|
61534
61534
|
pointColor: marker.color,
|
|
61535
61535
|
pointSize: 12,
|
|
@@ -61639,7 +61639,7 @@ class MarkerDrawingAdapter {
|
|
|
61639
61639
|
const drawing = this.markerDrawings.get(marker.id);
|
|
61640
61640
|
if (drawing) {
|
|
61641
61641
|
const mapProjection = this.map.getView().getProjection().getCode();
|
|
61642
|
-
const coordinate = mapProjection === "EPSG:4326" ? [marker.longitude, marker.latitude] : fromLonLat
|
|
61642
|
+
const coordinate = mapProjection === "EPSG:4326" ? [marker.longitude, marker.latitude] : fromLonLat([marker.longitude, marker.latitude]);
|
|
61643
61643
|
drawing.setCoordinates(coordinate);
|
|
61644
61644
|
const iconUrl = this.createMarkerIconDataUrl(marker.color);
|
|
61645
61645
|
drawing.setIcon(iconUrl, {
|
|
@@ -61680,6 +61680,15 @@ class MarkerDrawingAdapter {
|
|
|
61680
61680
|
getAllMarkers() {
|
|
61681
61681
|
return Array.from(this.markerDrawings.values()).map((drawing) => this.getMarkerFromDrawing(drawing)).filter((marker) => marker !== null);
|
|
61682
61682
|
}
|
|
61683
|
+
/**
|
|
61684
|
+
* 设置标记(批量替换)
|
|
61685
|
+
*/
|
|
61686
|
+
setMarkers(markers) {
|
|
61687
|
+
this.clearAllMarkers();
|
|
61688
|
+
markers.forEach((marker) => {
|
|
61689
|
+
this.addMarker(marker);
|
|
61690
|
+
});
|
|
61691
|
+
}
|
|
61683
61692
|
/**
|
|
61684
61693
|
* 清除所有标记
|
|
61685
61694
|
*/
|
|
@@ -66555,7 +66564,7 @@ class SearchMarkerManager {
|
|
|
66555
66564
|
return;
|
|
66556
66565
|
}
|
|
66557
66566
|
const mapProjection = this.map.getView().getProjection().getCode();
|
|
66558
|
-
const coordinate = mapProjection === "EPSG:4326" ? [lng, lat] : fromLonLat
|
|
66567
|
+
const coordinate = mapProjection === "EPSG:4326" ? [lng, lat] : fromLonLat([lng, lat]);
|
|
66559
66568
|
const view = this.map.getView();
|
|
66560
66569
|
view.animate({
|
|
66561
66570
|
center: coordinate,
|
|
@@ -66577,7 +66586,7 @@ class SearchMarkerManager {
|
|
|
66577
66586
|
console.warn("无效的坐标:", result.location);
|
|
66578
66587
|
return null;
|
|
66579
66588
|
}
|
|
66580
|
-
const coordinate = fromLonLat
|
|
66589
|
+
const coordinate = fromLonLat([lng, lat]);
|
|
66581
66590
|
const point = new Point$1(coordinate);
|
|
66582
66591
|
const feature = new Feature$2({
|
|
66583
66592
|
geometry: point,
|
|
@@ -66663,7 +66672,7 @@ class SearchMarkerManager {
|
|
|
66663
66672
|
return;
|
|
66664
66673
|
}
|
|
66665
66674
|
const mapProjection = this.map.getView().getProjection().getCode();
|
|
66666
|
-
const coordinate = mapProjection === "EPSG:4326" ? [lng, lat] : fromLonLat
|
|
66675
|
+
const coordinate = mapProjection === "EPSG:4326" ? [lng, lat] : fromLonLat([lng, lat]);
|
|
66667
66676
|
const zoom = zoomLevel || ((_a2 = this.config.resultStyle) == null ? void 0 : _a2.zoomLevel) || 16;
|
|
66668
66677
|
this.map.getView().animate({
|
|
66669
66678
|
center: coordinate,
|
|
@@ -66853,7 +66862,7 @@ class MapManager {
|
|
|
66853
66862
|
var _a2;
|
|
66854
66863
|
const projection = this.config.projection || "EPSG:3857";
|
|
66855
66864
|
const center = this.config.center || [116.404, 39.915];
|
|
66856
|
-
const transformedCenter = projection === "EPSG:4326" ? center : fromLonLat
|
|
66865
|
+
const transformedCenter = projection === "EPSG:4326" ? center : fromLonLat(center);
|
|
66857
66866
|
const view = new View$1({
|
|
66858
66867
|
center: transformedCenter,
|
|
66859
66868
|
zoom: this.config.zoom || 10,
|
|
@@ -67093,7 +67102,7 @@ class MapManager {
|
|
|
67093
67102
|
const view = this.map.getView();
|
|
67094
67103
|
if (config.center) {
|
|
67095
67104
|
const mapProjection = view.getProjection().getCode();
|
|
67096
|
-
const center = mapProjection === "EPSG:4326" ? config.center : fromLonLat
|
|
67105
|
+
const center = mapProjection === "EPSG:4326" ? config.center : fromLonLat(config.center);
|
|
67097
67106
|
view.setCenter(center);
|
|
67098
67107
|
}
|
|
67099
67108
|
if (config.zoom !== void 0) {
|
|
@@ -67224,6 +67233,30 @@ class MapManager {
|
|
|
67224
67233
|
getMarkerAdapter() {
|
|
67225
67234
|
return this.markerAdapter;
|
|
67226
67235
|
}
|
|
67236
|
+
/**
|
|
67237
|
+
* 设置用户标记
|
|
67238
|
+
*/
|
|
67239
|
+
setUserMarkers(markers) {
|
|
67240
|
+
if (this.markerAdapter) {
|
|
67241
|
+
this.markerAdapter.setMarkers(markers);
|
|
67242
|
+
}
|
|
67243
|
+
}
|
|
67244
|
+
/**
|
|
67245
|
+
* 清除所有图层
|
|
67246
|
+
*/
|
|
67247
|
+
clearLayers() {
|
|
67248
|
+
if (this.layerManager) {
|
|
67249
|
+
this.layerManager.clearAllLayers();
|
|
67250
|
+
}
|
|
67251
|
+
}
|
|
67252
|
+
/**
|
|
67253
|
+
* 添加图层
|
|
67254
|
+
*/
|
|
67255
|
+
addLayers(layers) {
|
|
67256
|
+
if (this.layerManager) {
|
|
67257
|
+
this.layerManager.addLayers(layers);
|
|
67258
|
+
}
|
|
67259
|
+
}
|
|
67227
67260
|
getEventManager() {
|
|
67228
67261
|
return this.eventManager;
|
|
67229
67262
|
}
|
|
@@ -67349,7 +67382,7 @@ class MapManager {
|
|
|
67349
67382
|
this.searchMarkerManager.addSearchMarkers([{ coordinate, name: result.name }]);
|
|
67350
67383
|
const view = this.map.getView();
|
|
67351
67384
|
const projection = view.getProjection().getCode();
|
|
67352
|
-
const targetCoordinate = projection === "EPSG:4326" ? coordinate : fromLonLat
|
|
67385
|
+
const targetCoordinate = projection === "EPSG:4326" ? coordinate : fromLonLat(coordinate);
|
|
67353
67386
|
view.animate({
|
|
67354
67387
|
center: targetCoordinate,
|
|
67355
67388
|
zoom: 16,
|
|
@@ -67988,9 +68021,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
67988
68021
|
showToolbar: { type: Boolean, default: true },
|
|
67989
68022
|
showMapInfo: { type: Boolean, default: true },
|
|
67990
68023
|
loading: { type: Boolean, default: false },
|
|
68024
|
+
userMarkers: {},
|
|
67991
68025
|
tooltipTemplate: {}
|
|
67992
68026
|
},
|
|
67993
|
-
emits: ["map-ready", "map-click", "map-dblclick", "map-contextmenu", "map-move", "zoom-change", "feature-info", "tooltip-show", "tooltip-hide", "feature-click", "measurement-start", "measurement-end", "measurement-result", "context-menu", "tool-action", "search", "search-select", "search-clear"],
|
|
68027
|
+
emits: ["map-ready", "map-click", "map-dblclick", "map-contextmenu", "map-move", "zoom-change", "feature-info", "tooltip-show", "tooltip-hide", "feature-click", "measurement-start", "measurement-end", "measurement-result", "context-menu", "tool-action", "search", "search-select", "search-clear", "fullscreen-toggle"],
|
|
67994
68028
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
67995
68029
|
const props = __props;
|
|
67996
68030
|
const emit = __emit;
|
|
@@ -68100,7 +68134,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
68100
68134
|
}
|
|
68101
68135
|
if (map.value) {
|
|
68102
68136
|
map.value.setTarget(void 0);
|
|
68103
|
-
map.value =
|
|
68137
|
+
map.value = void 0;
|
|
68104
68138
|
}
|
|
68105
68139
|
});
|
|
68106
68140
|
const initMap = () => {
|
|
@@ -68123,7 +68157,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
68123
68157
|
return;
|
|
68124
68158
|
mapManager.bindEvents({
|
|
68125
68159
|
onFeatureClick: (feature, layer, coordinate) => {
|
|
68126
|
-
emit("feature-click", feature, layer
|
|
68160
|
+
emit("feature-click", feature, layer);
|
|
68127
68161
|
},
|
|
68128
68162
|
onMapClick: (event) => {
|
|
68129
68163
|
if (isCoordinatePicking.value && coordinatePickCallback.value) {
|
|
@@ -68236,7 +68270,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
68236
68270
|
const onResult = (result) => {
|
|
68237
68271
|
emit("measurement-result", result);
|
|
68238
68272
|
};
|
|
68239
|
-
measurementTool.
|
|
68273
|
+
measurementTool.startCoordinateMeasurement(onResult);
|
|
68240
68274
|
};
|
|
68241
68275
|
const onContextMenuVisibleChange = (visible) => {
|
|
68242
68276
|
};
|
|
@@ -68312,7 +68346,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
68312
68346
|
console.log("标记已添加到地图:", marker);
|
|
68313
68347
|
break;
|
|
68314
68348
|
case "update":
|
|
68315
|
-
markerAdapter.updateMarker(marker
|
|
68349
|
+
markerAdapter.updateMarker(marker);
|
|
68316
68350
|
console.log("标记已更新:", marker);
|
|
68317
68351
|
break;
|
|
68318
68352
|
case "delete":
|
|
@@ -68361,8 +68395,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
68361
68395
|
tooltipData.value = null;
|
|
68362
68396
|
emit("tooltip-hide");
|
|
68363
68397
|
};
|
|
68364
|
-
const onFeatureClick = (feature,
|
|
68365
|
-
emit("feature-click", feature,
|
|
68398
|
+
const onFeatureClick = (feature, layerInfo) => {
|
|
68399
|
+
emit("feature-click", feature, layerInfo);
|
|
68366
68400
|
};
|
|
68367
68401
|
const onTooltipDataLoaded = (data) => {
|
|
68368
68402
|
};
|
|
@@ -68405,14 +68439,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
68405
68439
|
}
|
|
68406
68440
|
};
|
|
68407
68441
|
const handleSearchSelect = (result) => {
|
|
68408
|
-
const
|
|
68409
|
-
if (!map.value || !
|
|
68442
|
+
const searchMarkerManager = mapManager == null ? void 0 : mapManager.getSearchMarkerManager();
|
|
68443
|
+
if (!map.value || !searchMarkerManager)
|
|
68410
68444
|
return;
|
|
68411
|
-
|
|
68412
|
-
|
|
68445
|
+
searchMarkerManager.addMarker(result);
|
|
68446
|
+
searchMarkerManager.flyToResult(result);
|
|
68413
68447
|
emit("search-select", result);
|
|
68414
68448
|
};
|
|
68415
68449
|
const handleSearchClear = () => {
|
|
68450
|
+
const searchMarkerManager = mapManager == null ? void 0 : mapManager.getSearchMarkerManager();
|
|
68416
68451
|
if (searchMarkerManager) {
|
|
68417
68452
|
searchMarkerManager.clearMarkers();
|
|
68418
68453
|
}
|
|
@@ -68747,7 +68782,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
68747
68782
|
};
|
|
68748
68783
|
}
|
|
68749
68784
|
});
|
|
68750
|
-
const MapContainer = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
68785
|
+
const MapContainer = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b6d20a3c"]]);
|
|
68751
68786
|
const _hoisted_1$4 = { class: "flex items-center justify-between px-4 py-3 border-b border-gray-200 bg-gray-50 rounded-t-lg" };
|
|
68752
68787
|
const _hoisted_2$4 = { class: "panel-actions" };
|
|
68753
68788
|
const _hoisted_3$4 = { class: "panel-content max-h-125 overflow-y-auto" };
|
|
@@ -79137,7 +79172,7 @@ function(t2) {
|
|
|
79137
79172
|
*/
|
|
79138
79173
|
function(t2) {
|
|
79139
79174
|
function e2() {
|
|
79140
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
79175
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-769bacc2.mjs")).catch(function(t3) {
|
|
79141
79176
|
return Promise.reject(new Error("Could not load canvg: " + t3));
|
|
79142
79177
|
}).then(function(t3) {
|
|
79143
79178
|
return t3.default ? t3.default : t3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _typeof$1 } from "./index-
|
|
1
|
+
import { _ as _typeof$1 } from "./index-03592281.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ol";
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
package/lib/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t, B, C, a, D, O, Q, p, s, I, z, H, J, L, A, E, R, d, M, K, N, P, u, x, y, F, G, b, T, w, r, e, k, o, c, f, g, q, m, h, j, S, i, n, l, v } from "./index-
|
|
1
|
+
import { t, B, C, a, D, O, Q, p, s, I, z, H, J, L, A, E, R, d, M, K, N, P, u, x, y, F, G, b, T, w, r, e, k, o, c, f, g, q, m, h, j, S, i, n, l, v } from "./index-03592281.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ol";
|
|
4
4
|
export {
|