remove unneeded code in editor.js
@@ -492,7 +492,6 @@ editor = {
} else if (form.is('[data-new]')) {
// create new geometry
var options = editor._get_mapitem_type_style(mapitem_type);
- if (geometry_field.val() === '') {
form.addClass('creation-lock');
var geomtype = form.attr('data-geomtype');
if (geomtype === 'polygon') {
@@ -504,20 +503,6 @@ editor = {
editor.map.editTools.startMarker(null, options);
}
editor._creating = true;
- } else {
- editor._editing_layer = L.geoJSON({
- "type": "Feature",
- "geometry": JSON.parse(geometry_field.val())
- }, {
- style: function() {
- return options;
- }
- }).getLayers()[0].addTo(editor.map);
- editor._editing_layer.enableEdit();
- if (editor._editing_layer.editor._resizeLatLng !== undefined) {
- editor._editing_layer.editor._resizeLatLng.__vertex._icon.style.display = 'none';
- }
- }
}
}
},
