@kizmann/pico-js 0.4.14 → 0.4.15

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.4.14",
3
+ "version": "0.4.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -506,7 +506,7 @@ export default class Map
506
506
  return boundry;
507
507
  }
508
508
 
509
- focusMarkers(filter = null, maxZoom = 14)
509
+ focusMarkers(filter = null, maxZoom = 14, boundSpace = 15)
510
510
  {
511
511
  let boundry = this.getMarkerBoundry(filter);
512
512
 
@@ -514,7 +514,7 @@ export default class Map
514
514
  this.map.setCenter(boundry.getCenter());
515
515
 
516
516
  // Adapt viewport to boundry
517
- this.map.fitBounds(boundry, 15);
517
+ this.map.fitBounds(boundry, boundSpace);
518
518
 
519
519
  if ( this.map.getZoom() > maxZoom ) {
520
520
  this.map.setZoom(maxZoom);