fix unhighlight in editor
This commit is contained in:
parent
4a37e63a2d
commit
2630a661b3
1 changed files with 1 additions and 2 deletions
|
@ -1238,7 +1238,6 @@ editor = {
|
|||
// highlight a geometries layer and itemtable row if they both exist
|
||||
var geometries = editor._highlight_geometries[id];
|
||||
if (!geometries) return;
|
||||
var option;
|
||||
for (geometry of geometries) {
|
||||
geometry.setStyle({
|
||||
color: '#FFFFDD',
|
||||
|
@ -1257,7 +1256,7 @@ editor = {
|
|||
for (geometry of geometries) {
|
||||
var hasOption, optionSelected;
|
||||
if (editor.accessRestrictionSelect) {
|
||||
var option = editor.accessRestrictionSelect.find('[value=' + String(feature.properties.access_restriction) + ']');
|
||||
option = editor.accessRestrictionSelect.find('[value=' + String(geometry.highlightID) + ']');
|
||||
hasOption = !!option.length;
|
||||
optionSelected = option.is(':selected');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue