maximcouton

reordering layers inside a map

Discussion created by maximcouton on Jul 1, 2014
Hi,

  I am wondering if it is possible to reorder my tiled layers inside my map.

  I want to have buttons to do that.

  A solution would be to store layers inside an array and upon reorder event, reorder them iside the array,
  delete existing layers in tha map, and add the new ones to the map for the array.

  Does the API do this by its own ?
 
something like : map.reorderLayers(layerId1, layerId2) ;   ?

Thanks,
Maxim

Outcomes