slotName

fun slotName(name: String): MapboxRouteLineViewOptions.Builder

The slot name to use for route line position in the layer stack.

style.addPersistentLayer(slotLayer("runtimeSlotId") {
slot("middle")
})

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.