@osimatic/helpers-js 1.1.6 → 1.1.8

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/location.js CHANGED
@@ -345,6 +345,9 @@ class PostalAddress {
345
345
  addressDataForPluging['locality'] = addressData['stateDistrict'];
346
346
  }
347
347
 
348
+ //var Address = require("ilib/js/lib/Address");
349
+ //var AddressFmt = require("ilib/lib/AddressFmt");
350
+
348
351
  let af = new AddressFmt();
349
352
  let formattedAddress = af.format(new Address(addressDataForPluging));
350
353
  return formattedAddress.replace(/\n+/g, separator);
@@ -94,6 +94,10 @@ class OpenStreetMap {
94
94
  this.locations.push([latitude, longitude]);
95
95
  }
96
96
 
97
+ setView(location, zoom) {
98
+ this.map.setView(location, zoom);
99
+ }
100
+
97
101
  centerOnFrance() {
98
102
  this.map.setView([46.52863469527167, 2.43896484375], 6);
99
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -8,5 +8,8 @@
8
8
  "keywords": [],
9
9
  "author": "",
10
10
  "license": "ISC",
11
- "description": ""
11
+ "description": "",
12
+ "dependencies": {
13
+ "ilib": "^14.16.0"
14
+ }
12
15
  }