set maxzoom for flyToBounds
This commit is contained in:
parent
07c279fe51
commit
0e61527ec3
1 changed files with 1 additions and 0 deletions
|
@ -296,6 +296,7 @@ editor = {
|
|||
var geometry = editor._highlight_geometries[parseInt($(this).parent().attr('data-pk'))];
|
||||
if (geometry !== undefined) {
|
||||
editor.map.flyToBounds(geometry.getBounds(), {
|
||||
maxZoom: 4,
|
||||
duration: 0.5,
|
||||
padding: [20, 20]
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue