vue-openlayers-plugin 1.0.9 → 1.0.10

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.
@@ -47593,7 +47593,7 @@ class WMTSLayerHandler extends BaseLayer2 {
47593
47593
  if (this.capabilities) {
47594
47594
  const options = optionsFromCapabilities(this.capabilities, {
47595
47595
  layer: this.config.layer || "",
47596
- matrixSet: this.config.matrixSet || "EPSG:3857"
47596
+ matrixSet: this.config.matrixSet || "EPSG:4326"
47597
47597
  });
47598
47598
  return new WMTS$1({
47599
47599
  ...options,
@@ -47604,9 +47604,9 @@ class WMTSLayerHandler extends BaseLayer2 {
47604
47604
  return new WMTS$1({
47605
47605
  url: this.config.url,
47606
47606
  layer: this.config.layer || "",
47607
- matrixSet: this.config.matrixSet || "EPSG:3857",
47607
+ matrixSet: this.config.matrixSet || "EPSG:4326",
47608
47608
  format: this.config.format || "image/png",
47609
- projection: this.config.projection || "EPSG:3857",
47609
+ projection: this.config.projection || "EPSG:4326",
47610
47610
  tileGrid: this.config.tileGrid,
47611
47611
  style: this.config.wmtsStyle || "default",
47612
47612
  crossOrigin: this.config.crossOrigin || "anonymous",
@@ -49021,7 +49021,7 @@ class GeoJSONLayerHandler extends BaseLayer2 {
49021
49021
  const format = new GeoJSON$1();
49022
49022
  if (this.config.data) {
49023
49023
  const features = format.readFeatures(this.config.data, {
49024
- featureProjection: "EPSG:3857"
49024
+ featureProjection: "EPSG:4326"
49025
49025
  });
49026
49026
  return new VectorSource$1({ features });
49027
49027
  } else if (this.config.url) {
@@ -49125,7 +49125,7 @@ class GeoJSONLayerHandler extends BaseLayer2 {
49125
49125
  type: "FeatureCollection",
49126
49126
  features
49127
49127
  }, {
49128
- featureProjection: "EPSG:3857"
49128
+ featureProjection: "EPSG:4326"
49129
49129
  });
49130
49130
  source.addFeatures(olFeatures);
49131
49131
  }
@@ -49215,7 +49215,7 @@ class HeatmapLayerHandler extends BaseLayer2 {
49215
49215
  const format = new GeoJSON$1();
49216
49216
  if (this.config.data) {
49217
49217
  const features = format.readFeatures(this.config.data, {
49218
- featureProjection: "EPSG:3857"
49218
+ featureProjection: "EPSG:4326"
49219
49219
  });
49220
49220
  return new VectorSource$1({ features });
49221
49221
  } else if (this.config.url) {
@@ -49334,7 +49334,7 @@ class ClusterLayerHandler extends BaseLayer2 {
49334
49334
  const format = new GeoJSON$1();
49335
49335
  if (this.config.data) {
49336
49336
  const features = format.readFeatures(this.config.data, {
49337
- featureProjection: "EPSG:3857"
49337
+ featureProjection: "EPSG:4326"
49338
49338
  });
49339
49339
  return new VectorSource$1({ features });
49340
49340
  } else if (this.config.url) {
@@ -49452,7 +49452,7 @@ class ClusterLayerHandler extends BaseLayer2 {
49452
49452
  type: "FeatureCollection",
49453
49453
  features
49454
49454
  }, {
49455
- featureProjection: "EPSG:3857"
49455
+ featureProjection: "EPSG:4326"
49456
49456
  });
49457
49457
  vectorSource.addFeatures(olFeatures);
49458
49458
  }
@@ -49644,7 +49644,7 @@ const _LayerFactory = class _LayerFactory {
49644
49644
  case LayerType.WMTS:
49645
49645
  return {
49646
49646
  format: "image/png",
49647
- matrixSet: "EPSG:3857",
49647
+ matrixSet: "EPSG:4326",
49648
49648
  crossOrigin: "anonymous"
49649
49649
  };
49650
49650
  case LayerType.GEOJSON:
@@ -67506,7 +67506,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
67506
67506
  center: fromLonLat(props.config.center || [116.404, 39.915]),
67507
67507
  zoom: props.config.zoom || 10,
67508
67508
  minZoom: props.config.minZoom || 3,
67509
- maxZoom: props.config.maxZoom || 18
67509
+ maxZoom: props.config.maxZoom || 18,
67510
+ ...props.config.view
67510
67511
  });
67511
67512
  const useCustomControls = ((_a2 = props.config.controls) == null ? void 0 : _a2.useCustomStyle) ?? false;
67512
67513
  useCustomControls ? {
@@ -68249,7 +68250,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
68249
68250
  };
68250
68251
  }
68251
68252
  });
68252
- const MapContainer = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-aa3f3f52"]]);
68253
+ const MapContainer = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6d8e6ccb"]]);
68253
68254
  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" };
68254
68255
  const _hoisted_2$4 = { class: "panel-actions" };
68255
68256
  const _hoisted_3$4 = { class: "panel-content max-h-125 overflow-y-auto" };
@@ -78626,7 +78627,7 @@ function(t2) {
78626
78627
  */
78627
78628
  function(t2) {
78628
78629
  function e2() {
78629
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-30a22498.mjs")).catch(function(t3) {
78630
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-2ce874e0.mjs")).catch(function(t3) {
78630
78631
  return Promise.reject(new Error("Could not load canvg: " + t3));
78631
78632
  }).then(function(t3) {
78632
78633
  return t3.default ? t3.default : t3;
@@ -1,4 +1,4 @@
1
- import { _ as _typeof$1 } from "./index-8cdf6623.mjs";
1
+ import { _ as _typeof$1 } from "./index-91bb71cf.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-8cdf6623.mjs";
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-91bb71cf.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
package/lib/index.umd.js CHANGED
@@ -47569,7 +47569,7 @@ void main(void) {
47569
47569
  if (this.capabilities) {
47570
47570
  const options = optionsFromCapabilities(this.capabilities, {
47571
47571
  layer: this.config.layer || "",
47572
- matrixSet: this.config.matrixSet || "EPSG:3857"
47572
+ matrixSet: this.config.matrixSet || "EPSG:4326"
47573
47573
  });
47574
47574
  return new WMTS$1({
47575
47575
  ...options,
@@ -47580,9 +47580,9 @@ void main(void) {
47580
47580
  return new WMTS$1({
47581
47581
  url: this.config.url,
47582
47582
  layer: this.config.layer || "",
47583
- matrixSet: this.config.matrixSet || "EPSG:3857",
47583
+ matrixSet: this.config.matrixSet || "EPSG:4326",
47584
47584
  format: this.config.format || "image/png",
47585
- projection: this.config.projection || "EPSG:3857",
47585
+ projection: this.config.projection || "EPSG:4326",
47586
47586
  tileGrid: this.config.tileGrid,
47587
47587
  style: this.config.wmtsStyle || "default",
47588
47588
  crossOrigin: this.config.crossOrigin || "anonymous",
@@ -48997,7 +48997,7 @@ void main(void) {
48997
48997
  const format = new GeoJSON$1();
48998
48998
  if (this.config.data) {
48999
48999
  const features = format.readFeatures(this.config.data, {
49000
- featureProjection: "EPSG:3857"
49000
+ featureProjection: "EPSG:4326"
49001
49001
  });
49002
49002
  return new VectorSource$1({ features });
49003
49003
  } else if (this.config.url) {
@@ -49101,7 +49101,7 @@ void main(void) {
49101
49101
  type: "FeatureCollection",
49102
49102
  features
49103
49103
  }, {
49104
- featureProjection: "EPSG:3857"
49104
+ featureProjection: "EPSG:4326"
49105
49105
  });
49106
49106
  source.addFeatures(olFeatures);
49107
49107
  }
@@ -49191,7 +49191,7 @@ void main(void) {
49191
49191
  const format = new GeoJSON$1();
49192
49192
  if (this.config.data) {
49193
49193
  const features = format.readFeatures(this.config.data, {
49194
- featureProjection: "EPSG:3857"
49194
+ featureProjection: "EPSG:4326"
49195
49195
  });
49196
49196
  return new VectorSource$1({ features });
49197
49197
  } else if (this.config.url) {
@@ -49310,7 +49310,7 @@ void main(void) {
49310
49310
  const format = new GeoJSON$1();
49311
49311
  if (this.config.data) {
49312
49312
  const features = format.readFeatures(this.config.data, {
49313
- featureProjection: "EPSG:3857"
49313
+ featureProjection: "EPSG:4326"
49314
49314
  });
49315
49315
  return new VectorSource$1({ features });
49316
49316
  } else if (this.config.url) {
@@ -49428,7 +49428,7 @@ void main(void) {
49428
49428
  type: "FeatureCollection",
49429
49429
  features
49430
49430
  }, {
49431
- featureProjection: "EPSG:3857"
49431
+ featureProjection: "EPSG:4326"
49432
49432
  });
49433
49433
  vectorSource.addFeatures(olFeatures);
49434
49434
  }
@@ -49620,7 +49620,7 @@ void main(void) {
49620
49620
  case LayerType.WMTS:
49621
49621
  return {
49622
49622
  format: "image/png",
49623
- matrixSet: "EPSG:3857",
49623
+ matrixSet: "EPSG:4326",
49624
49624
  crossOrigin: "anonymous"
49625
49625
  };
49626
49626
  case LayerType.GEOJSON:
@@ -67496,7 +67496,8 @@ void main(void) {
67496
67496
  center: fromLonLat(props.config.center || [116.404, 39.915]),
67497
67497
  zoom: props.config.zoom || 10,
67498
67498
  minZoom: props.config.minZoom || 3,
67499
- maxZoom: props.config.maxZoom || 18
67499
+ maxZoom: props.config.maxZoom || 18,
67500
+ ...props.config.view
67500
67501
  });
67501
67502
  const useCustomControls = ((_a2 = props.config.controls) == null ? void 0 : _a2.useCustomStyle) ?? false;
67502
67503
  useCustomControls ? {
@@ -68239,8 +68240,8 @@ void main(void) {
68239
68240
  };
68240
68241
  }
68241
68242
  });
68242
- const MapContainer_vue_vue_type_style_index_0_scoped_aa3f3f52_lang = "";
68243
- const MapContainer = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-aa3f3f52"]]);
68243
+ const MapContainer_vue_vue_type_style_index_0_scoped_6d8e6ccb_lang = "";
68244
+ const MapContainer = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6d8e6ccb"]]);
68244
68245
  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" };
68245
68246
  const _hoisted_2$4 = { class: "panel-actions" };
68246
68247
  const _hoisted_3$4 = { class: "panel-content max-h-125 overflow-y-auto" };
package/lib/style.css CHANGED
@@ -1290,7 +1290,7 @@ to {
1290
1290
  [data-v-22bca390] .el-button,[data-v-22bca390] .el-slider,[data-v-22bca390] .el-icon {
1291
1291
  pointer-events: auto;
1292
1292
  }
1293
- .map-info-panel[data-v-aa3f3f52] {
1293
+ .map-info-panel[data-v-6d8e6ccb] {
1294
1294
  position: absolute;
1295
1295
  gap: 12px;
1296
1296
  bottom: 0px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-openlayers-plugin",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "A Vue 3 plugin for OpenLayers with custom components and utilities",
5
5
  "main": "lib/index.umd.js",
6
6
  "module": "lib/index.esm.js",
@@ -1 +1 @@
1
- {"version":3,"file":"MapContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomOpenlayer/components/MapContainer.vue"],"names":[],"mappings":"AAyFA;AAKA,OAAO,GAAG,MAAM,QAAQ,CAAA;AAWxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAKlE,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAGlF,OAAO,KAAK,EACV,SAAS,EAET,aAAa,EAEb,WAAW,EACX,eAAe,EAEf,YAAY,EAIb,MAAM,UAAU,CAAA;AAIjB,UAAU,KAAK;IACb,MAAM,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,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