editor only highlight featrues of current feature type

This commit is contained in:
Laura Klünder 2016-10-19 13:26:19 +02:00
parent 4b0040b547
commit 1a0d5234fe

View file

@ -261,7 +261,7 @@ editor = {
_hover_feature_layer: function (e) {
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();
L.geoJSON(e.layer.toGeoJSON(), {
style: function() {