Is it possible to have a dynamic layer on top of a tiled map service layer?
In this code, only the tiled map is visible.
var dyn = new ArcGISDynamicMapServiceLayer(url); map.addLayer(dyn); tiled = new ArcGISTiledMapServiceLayer(url); map.addLayer(tiled);
Solved! Go to Solution.
You can always reorder the layers using the reorderLayer method. The only thing you have to be aware of is that this doesn't hold true for FeatureLayers, since they're always on top of tiled or dynamic layers.
Richard,
Absolutely. I have multiple apps with dynamic on top of tiled. Have you tried reversing the order they are added to the map?
Yes, I see. But I am adding the TiledMapServiceLayer when the end user clicks on a button to see those. Is there a way to change the order of the TiledMap?
You can always reorder the layers using the reorderLayer method. The only thing you have to be aware of is that this doesn't hold true for FeatureLayers, since they're always on top of tiled or dynamic layers.
Thank you all.