Conditions widget
<ullr-widget> is the complete conditions experience in one element: an
interactive map of the mountain beside a details panel your visitors can browse.
The panel has tabs for terrain park features, trails and lifts, plus the updates
your crew posts through the day.
Use it when you want a single “conditions” page and do not want to assemble one out of the smaller embeds. If you only need a map, or only a status table, the interactive map, trail list and lift list are lighter.
public/img/embeds/conditions-widget.pngInstall
<script type="module" src="https://widget.ullr.ski/web-components/ullr-widget.js"></script>
<ullr-widget
apiKey="1a2b3c4d5e6f.yourPublishableKey"
areaId="your-area-id"
sport="SNOW"
showFeatures="true"
showTrails="true"
showLifts="true"
initialMapStyle="VECTOR"
units="imperial"
theme="#6B8CF9"
style="display:block;position:relative;height:600px"
></ullr-widget>The widget fills its container, so it needs an explicit height — without one it
collapses to nothing and the page looks empty. The style attribute above is
what the dashboard generates; a CSS rule works just as well.
Required scopes
Your publishable key needs resorts:read and updates:read, plus one scope per
layer you switch on: features:read, trails:read, lifts:read. If you hide
the Updates tab with hideParkLogs="true", you can drop updates:read.
Attributes
Widget options
hideParkLogsbooleanOptionalfalsedefaultEntityFEATURES | TRAILS | LIFTSOptionalFEATURES (TRAILS when sport is BIKE)showFeaturesbooleanOptionaltrueshowTrailsbooleanOptionalfalseshowLiftsbooleanOptionalfalseinitialMapStyleVECTOR | SATELLITEOptionalVECTOR is the topographic style.the area's configured defaultunitsimperial | metricOptionalimperialenableCooperativeGesturesbooleanOptionalfalsemapDefaultLatitudenumberOptionalthe area's configured defaultmapDefaultLongitudenumberOptionalthe area's configured defaultmapDefaultBearingnumberOptionalthe area's configured defaultmapDefaultPitchnumberOptional45enableMultiSelectbooleanOptionalfalseenableEventsFeatureSelectionbooleanOptionalullr-feature-select events, so two Ullr embeds on the same page stay in sync when a feature is selected.falseenableEventsTrailSelectionbooleanOptionalullr-trail-select events, so two Ullr embeds on the same page stay in sync when a trail is selected.falseenableEventsLiftSelectionbooleanOptionalullr-lift-select events, so two Ullr embeds on the same page stay in sync when a lift is selected.falseCommon attributes
Shared by all four embeds.
apiKeystringRequired{id}.{secret}. Sent as the api-key header on every request the element makes. Without it the element logs an error and renders nothing.areaIdstringRequiredsportSNOW | BIKEOptionalSNOWthemestringOptional#6B8CF9. Three- or six-digit hex only; anything else is ignored and the sport default is used. The secondary colour is derived automatically.#6B8CF9 (snow) / #50A162 (bike)timestampnumberOptionalullrKeystringOptionalapiKey, kept so older snippets keep working. Only read when apiKey is absent. Use apiKey in new code.Notes
- Layer defaults differ from the dashboard. The element defaults to features on, trails and lifts off. The dashboard configurator defaults all three on and always writes them into the snippet — so a hand-written tag that omits them will show less than the one the dashboard generates.
themeworks here and on the other three embeds, but the dashboard only offers a colour picker for this one. Set it by hand elsewhere if you want it.- The Updates tab reads park reports through the Public API, so a key without
updates:readshows an empty tab rather than an error. Hide it withhideParkLogs="true"if you are not using it. - Combine with other embeds on the same page by turning on the matching
enableEvents*Selectionattributes — selecting a trail in one element then selects it in the other.