spatial-monorepo / verticals/src / AndonLayer
Function: AndonLayer()
AndonLayer():
ReactElement<unknown,string|JSXElementConstructor<any>> |null
Defined in: packages/verticals/src/components/FactoryProfile.tsx:556
Issue #595 — AndonLayer previously built every feature with a hardcoded Point [0, 0] geometry and rendered it through PolygonDataLayer (addPolygonLayer creates fill+line layers, which do not render Point geometry at all — every machine drew nothing). fillColor also collapsed to entries[0].color, so even a working layer would have shown every machine as a single uniform color.
Fixed to render via PointDataLayer (a MapLibre circle layer, which does rasterize Point geometry) at each entry's real machine location, with color written into feature properties and driven by a ['get', 'color'] expression — the same as unknown as string idiom already used by featureTypeFillColorExpression() to pass MapLibre expressions through a string-typed color prop — so each machine keeps its own state color. Entries without a resolvable position are omitted rather than plotted at null island.
Returns
ReactElement<unknown, string | JSXElementConstructor<any>> | null
