vue-geojson-view-ts 1.2.5 → 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/README.md
CHANGED
|
@@ -114,10 +114,10 @@ const getGeoJSON = (geojson:any) =>{
|
|
|
114
114
|
console.log(geojson)
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
const dataPolygon = [{"type":"Feature","properties":{},
|
|
117
|
+
const dataPolygon = JSON.stringify([{"type":"Feature","properties":{},
|
|
118
118
|
"geometry":{"type":"Polygon","coordinates":[
|
|
119
119
|
[[-65.268488,-19.038266],[-65.25703,-19.034128],[-65.256085,-19.039361],[-65.268788,-19.043337],[-65.268488,-19.038266]]
|
|
120
|
-
]}}]
|
|
120
|
+
]}}]) //
|
|
121
121
|
|
|
122
122
|
</script>
|
|
123
123
|
|
|
@@ -17,7 +17,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
17
|
mapRender: L.Map | null;
|
|
18
18
|
markerRender: L.Marker<any> | null;
|
|
19
19
|
renderCoordinates: unknown[] | undefined;
|
|
20
|
-
renderGeojson:
|
|
20
|
+
renderGeojson: any;
|
|
21
21
|
markerIcon: {
|
|
22
22
|
iconUrl: string;
|
|
23
23
|
iconSize: number[];
|
|
@@ -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 = this.renderGeojson;
|
|
6542
|
+
const r = JSON.parse(this.renderGeojson);
|
|
6543
6543
|
if (r && r.length) {
|
|
6544
6544
|
r.forEach((D) => {
|
|
6545
6545
|
D.type === "FeatureCollection" ? D.features.forEach((N) => {
|