mwack

Layer Drawing order

Discussion created by mwack on Jan 31, 2013
Latest reply on May 14, 2013 by KellyThomas
I have a map with several layers, how can I control the drawing order of the layers so that my highlight layers are always on top?

//add Layers to Map
map.addLayer(dataCollectOfflineLayer);
map.addLayer(pictureOfflineLayer);
map.addLayer(highlightLayer);
map.addLayer(newPicturePoints);

That draws them initially in OnCreate in the order I want, but I do some updating to the OfflineLayer and then need to recreate them redraw.  Then the offline layer end up being on top of the rest.

Outcomes