Layer ordering

2936
1
Jump to solution
03-26-2015 04:58 AM
PederHusom
New Contributor

Hi,

I have two layers. One ArcGISDynamicMapServiceLayer based on a .MPK+Oracle DB. One WmsLayer.

If I add them in this order;

DynamicMapServiceLayer

WmsLayer

Both layers get rendered, but the DynamicMapServiceLayer is behind the WmsLayer. So as soon as the WmsLayer has loaded, the DynmicMapServiceLayer is a bit faster, it gets drawn over the DynamicMapServiceLayer.

If I add them in the reverse order;

WmsLayer

DynamicMapServiceLayer

The DynamicMapServiceLayer is fine, but the WmsLayer is nowhere to be seen. Setting the DynamicMapServiceLayers image format to PNG or any other doesn't help either.

I've looked for a z-index or something simillar but can't seem to find anything relevant. Any tips, tricks or obvious things that I'm missing?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor

Hi,

It's possible the WMS Layer does not support the spatial reference of the dynamic map service layer. Try setting the Map.SpatialReference explicitly.

Cheers

Mike

View solution in original post

0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor

Hi,

It's possible the WMS Layer does not support the spatial reference of the dynamic map service layer. Try setting the Map.SpatialReference explicitly.

Cheers

Mike

0 Kudos