fix: update DRAFT_ENTITY_EXPR to exclude features with bindings
Build and Release / release (push) Successful in 37s
Build and Release / release (push) Successful in 37s
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import maplibregl, { LayerSpecification } from "maplibre-gl";
|
||||
|
||||
const TYPE_MATCH_EXPR: maplibregl.ExpressionSpecification = ["coalesce", ["get", "type"], ["get", "entity_type_id"], ""];
|
||||
const DRAFT_ENTITY_EXPR: maplibregl.ExpressionSpecification = ["==", ["coalesce", ["get", "entity_id"], ""], ""];
|
||||
const DRAFT_ENTITY_EXPR: maplibregl.ExpressionSpecification = [
|
||||
"all",
|
||||
["==", ["coalesce", ["get", "entity_id"], ""], ""],
|
||||
["!", ["has", "binding"]]
|
||||
];
|
||||
const SELECTED_EXPR: maplibregl.ExpressionSpecification = ["boolean", ["feature-state", "selected"], false];
|
||||
|
||||
const SELECTED_COLOR = "#22c55e";
|
||||
|
||||
Reference in New Issue
Block a user