vue-geojson-view-ts 1.2.8 → 1.2.91
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 =
|
|
117
|
+
const dataPolygon =[{"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
|
|
|
@@ -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:
|
|
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():
|
|
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:
|
|
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:
|
|
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
|
-
}),
|
|
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) => {
|