editor only highlight featrues of current feature type
This commit is contained in:
parent
4b0040b547
commit
1a0d5234fe
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ editor = {
|
||||||
|
|
||||||
_hover_feature_layer: function (e) {
|
_hover_feature_layer: function (e) {
|
||||||
editor._unhover_feature_layer();
|
editor._unhover_feature_layer();
|
||||||
if (editor._editing === null && editor._creating === null) {
|
if (editor._editing === null && editor._creating === null && e.layer.feature.properties.feature_type == editor._feature_type) {
|
||||||
editor._highlight_layer.clearLayers();
|
editor._highlight_layer.clearLayers();
|
||||||
L.geoJSON(e.layer.toGeoJSON(), {
|
L.geoJSON(e.layer.toGeoJSON(), {
|
||||||
style: function() {
|
style: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue