show graph items only in graph editing mode

This commit is contained in:
Laura Klünder 2017-07-26 15:11:07 +02:00
parent e52552166f
commit 3be8480a58

View file

@ -349,6 +349,9 @@ editor = {
if (remove_feature !== null) {
geometries.splice(remove_feature, 1);
}
if (editor._graph_editing === null) {
geometries = geometries.filter(function(val) { return val.properties.type !== 'graphnode' })
}
editor._geometries_layer = L.geoJSON(geometries, {
style: editor._get_geometry_style,
pointToLayer: editor._point_to_layer,