Skip to main content
code formatting
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

You must create Panel in order to control the order.

map.createPane('myPane1'); map.createPane('myPane2'); map.getPane('myPane1').style.zIndex = 400; map.getPane('myPane2').style.zIndex = 800;

map.createPane('myPane1');
map.createPane('myPane2');
map.getPane('myPane1').style.zIndex = 400;
map.getPane('myPane2').style.zIndex = 800;

With this you can add the layer to the pane you want.

You must create Panel in order to control the order.

map.createPane('myPane1'); map.createPane('myPane2'); map.getPane('myPane1').style.zIndex = 400; map.getPane('myPane2').style.zIndex = 800;

With this you can add the layer to the pane you want.

You must create Panel in order to control the order.

map.createPane('myPane1');
map.createPane('myPane2');
map.getPane('myPane1').style.zIndex = 400;
map.getPane('myPane2').style.zIndex = 800;

With this you can add the layer to the pane you want.

Source Link

You must create Panel in order to control the order.

map.createPane('myPane1'); map.createPane('myPane2'); map.getPane('myPane1').style.zIndex = 400; map.getPane('myPane2').style.zIndex = 800;

With this you can add the layer to the pane you want.