vue-geojson-view-ts 1.2.7 → 1.2.9
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.
|
@@ -26,7 +26,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
26
26
|
layersFeatureGroup: any;
|
|
27
27
|
featuresData: any;
|
|
28
28
|
}, {}, {
|
|
29
|
-
getLayersFeaturesInGeoJson():
|
|
29
|
+
getLayersFeaturesInGeoJson(): (import("geojson").GeometryCollection<import("geojson").Geometry> | import("geojson").FeatureCollection<import("geojson").Geometry, any> | import("geojson").Feature<import("geojson").MultiPoint, any>)[];
|
|
30
30
|
triggerSaveEdit(): void;
|
|
31
31
|
makeid(length: number): void;
|
|
32
32
|
renderMap(): void;
|
|
@@ -6439,7 +6439,7 @@ const fa = Gi({
|
|
|
6439
6439
|
const s = U.geoJSON().addTo(this.mapRender);
|
|
6440
6440
|
return this.featuresData.eachLayer((c) => {
|
|
6441
6441
|
s.addLayer(c);
|
|
6442
|
-
}),
|
|
6442
|
+
}), [s.toGeoJSON()];
|
|
6443
6443
|
},
|
|
6444
6444
|
triggerSaveEdit() {
|
|
6445
6445
|
var l, c, d;
|
|
@@ -6539,7 +6539,7 @@ const fa = Gi({
|
|
|
6539
6539
|
...(v = this.configurationMap) == null ? void 0 : v.editFigures.edit,
|
|
6540
6540
|
remove: (w = this.configurationMap) == null ? void 0 : w.editFigures.remove
|
|
6541
6541
|
});
|
|
6542
|
-
const r =
|
|
6542
|
+
const r = this.renderGeojson;
|
|
6543
6543
|
if (r && r.length) {
|
|
6544
6544
|
r.forEach((D) => {
|
|
6545
6545
|
D.type === "FeatureCollection" ? D.features.forEach((N) => {
|
|
@@ -7985,7 +7985,7 @@ const Dl = et, Ol = ["id"], Hl = /* @__PURE__ */ Gi({
|
|
|
7985
7985
|
[r.value.lat, r.value.lng],
|
|
7986
7986
|
r.value.zoom
|
|
7987
7987
|
);
|
|
7988
|
-
if (h.value = E, U.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
7988
|
+
if (E.invalidateSize(), h.value = E, U.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
7989
7989
|
maxZoom: (N = d.configurationMap) == null ? void 0 : N.maxZoom,
|
|
7990
7990
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
7991
7991
|
}).addTo(E), P.type === "image") {
|