allow editing points in editor

This commit is contained in:
Laura Klünder 2017-05-27 16:50:55 +02:00
parent b8033edcf5
commit 9b80a44d6d

View file

@ -259,7 +259,7 @@ editor = {
editor._highlight_layer.addTo(editor.map);
editor._loading_geometry = false;
if (editor._bounds_layer === null) editor._bounds_layer = editor._geometries_layer;
editor.map.flyToBounds(editor._bounds_layer.getBounds(), {
editor.map.flyToBounds((editor._bounds_layer.getBounds !== undefined) ? editor._bounds_layer.getBounds() : [editor._bounds_layer.getLatLng(), editor._bounds_layer.getLatLng()], {
maxZoom: 4,
duration: 0.5,
padding: [20, 20]