slotName
The slot name to use for route line position in the layer stack.
style.addPersistentLayer(slotLayer("runtimeSlotId") {
slot("middle")
})
Content copied to clipboard
The slot layer needs to be added persistently, because so are the route line layers, and they require the slot reference immediately on style reload to be correctly recreated.
Return
the builder
Parameters
name
the name of the slot to use.