Insert an object layer between the two vector layers
This example shows how to interleave an object layer and the vector layer. It is possible to do it dynamically during the map runtime. The map is loaded with the default vector layer, after that the layer is split into two and the new object layer is inserted between them.
The code below extracts the buildings
configuration from the base layer. After that it creates a new object
and vector
layers
that are added sequentially to the map's layer collection. The layers are rendered in the order they are added and the default object layer remained
on top of the layers collection.