vue-geojson-view-ts 1.2.8 → 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.
@@ -7,7 +7,7 @@ declare global {
7
7
  declare const _sfc_main: import("vue").DefineComponent<{
8
8
  loadPolygon: BooleanConstructor;
9
9
  reverseCoordinatesPolygon: BooleanConstructor;
10
- dataPolygon: StringConstructor;
10
+ dataPolygon: ObjectConstructor;
11
11
  configurationMap: any;
12
12
  coordinatesMap: ArrayConstructor;
13
13
  getGeoJSON: FunctionConstructor;
@@ -26,7 +26,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
26
26
  layersFeatureGroup: any;
27
27
  featuresData: any;
28
28
  }, {}, {
29
- getLayersFeaturesInGeoJson(): string;
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;
@@ -35,7 +35,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
35
35
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  loadPolygon: BooleanConstructor;
37
37
  reverseCoordinatesPolygon: BooleanConstructor;
38
- dataPolygon: StringConstructor;
38
+ dataPolygon: ObjectConstructor;
39
39
  configurationMap: any;
40
40
  coordinatesMap: ArrayConstructor;
41
41
  getGeoJSON: FunctionConstructor;
@@ -6409,7 +6409,7 @@ const fa = Gi({
6409
6409
  props: {
6410
6410
  loadPolygon: Boolean,
6411
6411
  reverseCoordinatesPolygon: Boolean,
6412
- dataPolygon: String,
6412
+ dataPolygon: Object,
6413
6413
  configurationMap: Object,
6414
6414
  coordinatesMap: Array,
6415
6415
  getGeoJSON: Function,
@@ -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
- }), JSON.stringify([s.toGeoJSON()]);
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 = JSON.parse(this.renderGeojson);
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) => {