Skip to main content
Source Link
Joshua Dickerson
  • 741
  • 3
  • 12
  • 25

OpenLayers 3 insert layer below other layers

I have this JSFiddle that can turn the OSM data on and off, the only issue being when it adds it back in the layer is added on top of everything else.

I know this is a relatively simple fix using the insertAt from the maps layer collection but I can't seem to get it working with this example.Perhaps i'm placing the map.insertAt in the wrong place?