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.
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export default defineComponent({
|
|
|
58
58
|
props: {
|
|
59
59
|
loadPolygon: Boolean,
|
|
60
60
|
reverseCoordinatesPolygon: Boolean,
|
|
61
|
-
dataPolygon:
|
|
61
|
+
dataPolygon: Object,
|
|
62
62
|
configurationMap: Object as any,
|
|
63
63
|
coordinatesMap: Array,
|
|
64
64
|
getGeoJSON: Function,
|
|
@@ -90,7 +90,7 @@ export default defineComponent({
|
|
|
90
90
|
this.featuresData.eachLayer((layer:any) => {
|
|
91
91
|
geojson.addLayer(layer);
|
|
92
92
|
});
|
|
93
|
-
const geojsonString = JSON.stringify([geojson.toGeoJSON()]);
|
|
93
|
+
const geojsonString = [geojson.toGeoJSON()];//JSON.stringify([geojson.toGeoJSON()]);
|
|
94
94
|
return geojsonString
|
|
95
95
|
},
|
|
96
96
|
triggerSaveEdit():void{
|
|
@@ -223,7 +223,7 @@ export default defineComponent({
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
const renderGeojson =
|
|
226
|
+
const renderGeojson = this.renderGeojson
|
|
227
227
|
if (renderGeojson && renderGeojson.length) {
|
|
228
228
|
renderGeojson.forEach((item: any) => {
|
|
229
229
|
if (item.type === 'FeatureCollection') {
|