editor: only edit features of current feature type
This commit is contained in:
parent
1a0d5234fe
commit
fc146ab4ee
1 changed files with 1 additions and 0 deletions
|
@ -282,6 +282,7 @@ editor = {
|
|||
$('.feature_list .hover').removeClass('hover');
|
||||
},
|
||||
_click_feature_layer: function(e) {
|
||||
if (e.layer.feature.properties.feature_type != editor._feature_type) return;
|
||||
editor.start_editing(e.layer.feature.properties.name);
|
||||
if ((e.originalEvent.ctrlKey || e.originalEvent.metaKey) && this.editEnabled()) {
|
||||
if (e.layer.feature.properties.geomtype == 'polygon') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue