editor: dont zoom into map when closing a shape with a doubleclick

This commit is contained in:
Laura Klünder 2016-12-08 23:00:28 +01:00
parent 3684cf6432
commit 22b431d376

View file

@ -185,6 +185,9 @@ editor = {
editor.map.on('editable:drawing:commit', editor._done_creating);
editor.map.on('editable:editing', editor._update_editing);
editor.map.on('editable:drawing:cancel', editor._canceled_creating);
editor.map.on('editable:vertex:click', function () {
editor.map.doubleClickZoom.disable();
});
editor._get_geometry_types();
},