set maxzoom for flyToBounds

This commit is contained in:
Laura Klünder 2017-05-27 00:58:53 +02:00
parent 07c279fe51
commit 0e61527ec3

View file

@ -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]
});