OptionalbeforeLayerConfig?: BeforeLayerConfigPosition incident layers before this map-style layer. Pass 'top' to
pin them above every other layer. Defaults to 'lowestLabel', which
keeps incidents below map labels (roads, places, POIs) so labels stay
readable — the same default the routing module and the flat area
analytics layers use.
Optionalhighlight?: false | IncidentHighlightConfigHow the incidents TrafficIncidentDetailsModule.setFocus marks are drawn, and a hovered or clicked incident too.
undefined) — use the SDK default highlight: an outline beneath
the stripe (black on light map styles, white on dark) and a 1.6× width pop.false — disable the highlight. setFocus(ids) still writes
MapLibre feature-state.focused, and user events eventState, so callers can drive
their own styling (extra layers, sidebar overlays, …) off those states.{ outlineColor?, widthFactor? } — override individual fields of the
default highlight.Optionallayers?: TrafficIncidentDetailsLayersConfigMapLibre overrides for the incident lines and markers. A layer hidden through its entry's
layout.visibility stays hidden while the module is shown.
Optionalvisible?: booleanWhether the incident layers are shown. Defaults to true.
show() never flips this flag — if false, the module loads data but
keeps layers hidden until setVisible(true) is called.
Configuration for TrafficIncidentDetailsModule.