The order addLayer is called should define the draw order of layers within their category. I.e., addLayer should add the layer to the end of its category, inserting it into the overall layer list if necessary.
A defaultCategories array should define the draw order of the categories themselves.
Improve the support for layer categories :
addLayer
is called should define the draw order of layers within their category. I.e.,addLayer
should add the layer to the end of its category, inserting it into the overall layer list if necessary.defaultCategories
array should define the draw order of the categories themselves.