Interface LayerCollectionProps

Components that implement this interface will add layers to the map and manage the order in which they appear in the map.

interface LayerCollectionProps {
    layers: AnyLayer[];
}

Properties

Properties

layers: AnyLayer[]

Layers in the map. The layers will be added to the map in array order; e.g. layers[0] will be added to the map first then layers[1], etc. The layer at index 0 will appear visually to be below a layer at index 1. If the order of the items in the layers array is changed the layers in the map will be changed to reflect the new order.