@vidro/map-handler 1.2.111 → 1.2.112
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +20 -7
- package/package.json +1 -1
- package/src/index.js +1 -0
package/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Map Handler
|
2
2
|
|
3
|
-
#### Version 1.2.
|
3
|
+
#### Version 1.2.111 - February 2024
|
4
4
|
|
5
5
|
Tool to achieve the easiest way of communication with the map iframe.
|
6
6
|
|
@@ -105,16 +105,15 @@ Notifies zoom level changed
|
|
105
105
|
|
106
106
|
##### geomAdded
|
107
107
|
|
108
|
-
Notifies geometry added to map
|
108
|
+
Notifies geometry added to map and featureId
|
109
109
|
|
110
|
-
|
110
|
+
When this tool is used, NO geom is added when drawing finishes. In case you want to add it, use `Highlight` tool
|
111
111
|
|
112
|
-
```
|
113
|
-
POINT(418925 4577135)
|
114
112
|
|
115
|
-
|
113
|
+
> E.G.
|
116
114
|
|
117
|
-
|
115
|
+
```
|
116
|
+
geom_astext: "POLYGON((418391.8715694032 4576832.484383419,418721.82301488414 4577299.667608328,418727.18131229794 4576947.724919814,418391.8715694032 4576832.484383419))"
|
118
117
|
```
|
119
118
|
|
120
119
|
##### loaded
|
@@ -314,6 +313,17 @@ Launches drawing tools with the geometry type
|
|
314
313
|
|
315
314
|
- geom `<string>` - geometry type `Point` | `Line` | `Polygon`
|
316
315
|
|
316
|
+
Optional parameters
|
317
|
+
|
318
|
+
- `texts` (`object`): Texts to be displayed with draw tools.
|
319
|
+
- `start` (`string`): E.G. "Click to start drawing"
|
320
|
+
- `continnue`:(`string`): E.G. "Click to to continue drawing"
|
321
|
+
- `center` (`object`): Center options.
|
322
|
+
- `style` (`object`):
|
323
|
+
- `fill` (`string`): The fill color for the drawn geometry.
|
324
|
+
- `stroke` (`string`): The stroke color for the drawn geometry.
|
325
|
+
|
326
|
+
|
317
327
|
> E.G.
|
318
328
|
|
319
329
|
```
|
@@ -485,6 +495,9 @@ Highlights/draws a geometry
|
|
485
495
|
Params
|
486
496
|
|
487
497
|
- `geom` (`string`): The geometry string in WKT to highlight.
|
498
|
+
|
499
|
+
Optional parameters
|
500
|
+
|
488
501
|
- `zoom` (`object`): Zoom options.
|
489
502
|
- `type` (`string`): The type of zoom (`level` or `element`).
|
490
503
|
- `level`: Zoom to a specific zoom level.
|
package/package.json
CHANGED