@expofp/floorplan
Version:
Interactive floor plan library for expos and events
31 lines • 1.71 kB
TypeScript
import { type Booth } from '../../../../store/BoothStore';
import { type Layer } from '../../../../store/LayerStore';
/**
* Whether outdoor PoI markers are switched on for this load. Gated behind
* `enableExperimentalOutdoorMarkers` (unset or `false` = off), which is the one
* check both halves of the feature share: layer containment here and marker
* rendering in `usePoiMarkers`.
*/
export declare function isOutdoorMarkersEnabled(): boolean;
/**
* Whether a designer layer is an Outdoor PoI layer. Name-only: the feature flag
* is checked by {@link configOutdoorPoiLayer}, so this stays a pure predicate.
*/
export declare function isOutdoorPoiLayer(l: Layer): boolean;
/**
* Handles the Outdoor PoI markers (hotels, parking, transit) for one designer
* layer. Outdoor layers contain nothing but PoI pins — points without a
* physical size — so the layer contributes nothing to the renderer scene. In
* the geo map every PoI booth becomes a fixed-size native MapLibre marker
* (usePoiMarkers); in floorplan-only and legacy-SVG modes nothing renders.
* Clicks, selection and routing are unaffected — booths are hit-tested by
* geometry (getBoothIdFromClientXy), not by the rendered shape. Rationale:
* docs/adr/0002-outdoor-poi-layer-containment.md.
*
* Returns true when the layer is an Outdoor layer; the caller must then
* exclude it from the scene. False leaves regular layers exactly as-is —
* including with `enableExperimentalOutdoorMarkers` off, so Outdoor layers then
* draw the way they did before the feature existed.
*/
export declare function configOutdoorPoiLayer(l: Layer, booths: readonly Booth[]): boolean;
//# sourceMappingURL=config-outdoor-poi.d.ts.map