fix styling active graph node with existing id

This commit is contained in:
Laura Klünder 2017-08-06 16:36:20 +02:00
parent 11cff8ff7f
commit ceaaeb2087

View file

@ -481,7 +481,7 @@ editor = {
style.fillOpacity = 0.5;
}
}
if (feature.properties.type === 'graphnode' && feature.properties.id === editor._active_graph_node) {
if (feature.properties.type === 'graphnode' && String(feature.properties.id) === editor._active_graph_node) {
style.stroke = true;
style.weight = 3;
style.color = '#ffff00';