@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/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/library/map.js +2 -2
package/package.json
CHANGED
package/src/library/map.js
CHANGED
@@ -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,
|
517
|
+
this.map.fitBounds(boundry, boundSpace);
|
518
518
|
|
519
519
|
if ( this.map.getZoom() > maxZoom ) {
|
520
520
|
this.map.setZoom(maxZoom);
|