show graph items only in graph editing mode
This commit is contained in:
parent
e52552166f
commit
3be8480a58
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue