Skip to content

spatial-monorepo


spatial-monorepo / verticals/src / ParkingAvailabilityLayer

Function: ParkingAvailabilityLayer()

ParkingAvailabilityLayer(__namedParameters?): Element | null

Defined in: packages/verticals/src/components/CampusProfile.tsx:755

Colours outdoor parking zones by occupancy via setFeatureState. Visible at outdoor zoom levels (zoom ≥ 13). Tapping a zone opens an InfoCard with total/available/percent.

Issue #830 — parkingSourceId has no misleading default (mirrors the #602 fix on HospitalProfile's RoomStatusFeatureStateLayer and the ClassScheduleLayer sourceId fix above). Callers must pass the real source id backing the parking-zone features explicitly; when absent, this component no-ops and logs a dev warning instead of spamming MapLibre "source not found" errors.

Parameters

__namedParameters?

parkingSourceId?

string

Returns

Element | null

Released under commercial licensing.