1

I have a map with various vector layers, and I would like to be able to decide which layer goes on top of which. I thought that inserting the layers in the map layer group using:

map.getLayers().insertAt(zIndex, layer);

would force the layers to be drawn in that specific order, but that does not work.

Any suggestions?

  • Do you have any other code? – Rui Lima May 21 '14 at 12:55
  • That should work @GabrielePallaver. I'm guessing you've got another problem that we're not able to see without you sharing additional code... – sfletche Nov 1 '14 at 5:27

Browse other questions tagged or ask your own question.