ArcGISDynamicMapServiceLayer on top of ArcGISTiledMapServiceLayer

2105
4
Jump to solution
12-14-2015 02:13 PM
RichardMoussopo
Occasional Contributor III

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);

1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

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.

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Richard,

   Absolutely. I have multiple apps with dynamic on top of tiled. Have you tried reversing the order they are added to the map?

RichardMoussopo
Occasional Contributor III

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?

0 Kudos
KenBuja
MVP Esteemed Contributor

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.

0 Kudos
RichardMoussopo
Occasional Contributor III

Thank you all.

0 Kudos