vue-geojson-view-ts 1.2.6 → 1.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-geojson-view-ts",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -70,7 +70,7 @@ export default defineComponent({
70
70
  mapRender: null as L.Map | null,
71
71
  markerRender:null as L.Marker | null,
72
72
  renderCoordinates: this.coordinatesMap,
73
- renderGeojson: this.dataPolygon,
73
+ renderGeojson: this.dataPolygon as any,
74
74
  markerIcon:{
75
75
  iconUrl: markerDefault,
76
76
  iconSize: [25, 41],
@@ -223,7 +223,7 @@ export default defineComponent({
223
223
  }
224
224
  }
225
225
 
226
- const renderGeojson = this.renderGeojson;
226
+ const renderGeojson = JSON.parse(this.renderGeojson);
227
227
  if (renderGeojson && renderGeojson.length) {
228
228
  renderGeojson.forEach((item: any) => {
229
229
  if (item.type === 'FeatureCollection') {