fix: update DRAFT_ENTITY_EXPR to exclude features with bindings
Build and Release / release (push) Successful in 37s

This commit is contained in:
2026-05-21 16:46:43 +07:00
parent 7e025fb449
commit 457eee4ffa
@@ -1,7 +1,11 @@
import maplibregl, { LayerSpecification } from "maplibre-gl"; import maplibregl, { LayerSpecification } from "maplibre-gl";
const TYPE_MATCH_EXPR: maplibregl.ExpressionSpecification = ["coalesce", ["get", "type"], ["get", "entity_type_id"], ""]; 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_EXPR: maplibregl.ExpressionSpecification = ["boolean", ["feature-state", "selected"], false];
const SELECTED_COLOR = "#22c55e"; const SELECTED_COLOR = "#22c55e";