proximiio-js-library 1.14.13 → 1.14.14

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
@@ -461,7 +461,16 @@ const map = new Proximiio.Map({
461
461
 
462
462
  // Only features within defined bounds will be retrieved from API, optional
463
463
  // [[topleft lng, lat], [bottomright lng, lat]]
464
- featuresMaxBounds: [[-73.9876, 40.7661], [-73.9397, 40.8002]]
464
+ featuresMaxBounds: [[-73.9876, 40.7661], [-73.9397, 40.8002]],
465
+
466
+ // If defined map data will be fetched from the defined url
467
+ bundleUrl: 'https://your-data.com/bundle',
468
+
469
+ // Map features will be fetched with parallel request queue from the bundle url
470
+ bundlePaginate: true,
471
+
472
+ // Map features will be fetched with parallel request queue from the api
473
+ apiPaginate: true
465
474
  });
466
475
  ```
467
476
 
@@ -178,6 +178,7 @@ export interface Options {
178
178
  autoTrigger?: boolean;
179
179
  autoLocate?: boolean;
180
180
  position?: 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right';
181
+ zoom?: number;
181
182
  };
182
183
  language?: string;
183
184
  routeColor?: string;
@@ -232,6 +232,7 @@ export class Map {
232
232
  autoTrigger: true,
233
233
  autoLocate: true,
234
234
  position: 'top-right',
235
+ zoom: 17,
235
236
  },
236
237
  language: 'en',
237
238
  routeWithDetails: true,
@@ -1164,6 +1165,9 @@ export class Map {
1164
1165
  },
1165
1166
  showAccuracyCircle: false,
1166
1167
  trackUserLocation: true,
1168
+ fitBoundsOptions: {
1169
+ maxZoom: this.defaultOptions.geolocationControlOptions.zoom,
1170
+ },
1167
1171
  });
1168
1172
  this.map.addControl(geolocate, this.defaultOptions.geolocationControlOptions.position);
1169
1173
  if (this.defaultOptions.geolocationControlOptions.autoTrigger) {
@@ -1190,6 +1194,10 @@ export class Map {
1190
1194
  this.startPoint = point([data.coords.longitude, data.coords.latitude], {
1191
1195
  level: this.state.floor.level,
1192
1196
  });
1197
+ this.map.flyTo({
1198
+ center: [data.coords.longitude, data.coords.latitude],
1199
+ zoom: this.defaultOptions.geolocationControlOptions.zoom,
1200
+ });
1193
1201
  });
1194
1202
  }
1195
1203
  }