@vidro/map-handler 1.2.111 → 1.2.112

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
@@ -1,6 +1,6 @@
1
1
  # Map Handler
2
2
 
3
- #### Version 1.2.109 - February 2024
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, as string
108
+ Notifies geometry added to map and featureId
109
109
 
110
- > E.G.
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
- POLYGON((418391.8715694032 4576832.484383419,418721.82301488414 4577299.667608328,418727.18131229794 4576947.724919814,418391.8715694032 4576832.484383419))
113
+ > E.G.
116
114
 
117
- MULTILINESTRING((419268.8979576373 4577019.482027252,419146.6929889547 4577457.250226778,418798.40365705814 4577415.776056751))
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidro/map-handler",
3
- "version": "1.2.111",
3
+ "version": "1.2.112",
4
4
  "description": "Tool to achieve the easiest way of communication with the map",
5
5
  "homepage": "https://github.com/Vidro-Software-SL/maphandler",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -113,6 +113,7 @@ class Communicator extends EventEmitter {
113
113
  geom: geomtype,
114
114
  texts: options?.texts,
115
115
  style: options?.style,
116
+ drawOnEnd: options.drawOnEnd,
116
117
  sessionToken: this.sessionToken,
117
118
  });
118
119
  };