@vidro/map-handler 1.1.194 → 1.1.195

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Map Handler
2
2
 
3
- #### Version 1.1.20 - Sep 2023
3
+ #### Version 1.1.197 - Sep 2023
4
4
 
5
5
  Tool to achieve the easiest way of communication with the map iframe.
6
6
 
@@ -286,6 +286,22 @@ Zooms to given coordinates
286
286
  zoomToCoordinates(419006.12985785044, 4576698.8136144625,18);
287
287
 
288
288
  ```
289
+ ##### CenterMap(lat,long)
290
+
291
+ center map to given coordinates
292
+
293
+ > Params
294
+
295
+ - lat (x) `<integer>`
296
+ - long (y) `<integer>`
297
+
298
+ > E.G.
299
+
300
+ ```
301
+ CenterMap(419006.12985785044, 4576698.8136144625,18);
302
+
303
+ ```
304
+
289
305
 
290
306
  ##### AddGeom(string)
291
307
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidro/map-handler",
3
- "version": "1.1.194",
3
+ "version": "1.1.195",
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
@@ -404,7 +404,7 @@ class Communicator extends EventEmitter {
404
404
  }
405
405
  };
406
406
 
407
- centerMap = (lat, lon) => {
407
+ CenterMap = (lat, lon) => {
408
408
  this.com.sendMessageToMap({
409
409
  type: "centerMap",
410
410
  coordinates: [lat, lon],