I need to bring dynamic map service layer on top of the feature layer using javascript api. I tried using reorderLayer method but couldn't be able to resolve. Any guide and sample work is highly appreciated. Thanks
Solved! Go to Solution.
Kushendra,
Basically the answer is no. FeatureLayers inherit from GraphicsLayer and GLs will always drawn on top of all other layer type (i.e. ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, Etc).
Graphics layers can be reordered within the group of graphics layers. However, the graphics layer in Map.graphics is always on top. Also, all graphics layers are always on top of TiledMapServiceLayers andDynamicMapServiceLayers.
Here are a few threads that discuss this and some possible workflow changes you can make to use different layer types to achieve your goal:
Reorder TiledMapServiceLayer and FeatureLayer
how to put a ArcGISDynamicMapServiceLayer on top of a GraphicsLayer
Cannot get featureLayer to display under DynamicMapServiceLayer
Kushendra,
Basically the answer is no. FeatureLayers inherit from GraphicsLayer and GLs will always drawn on top of all other layer type (i.e. ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, Etc).
Graphics layers can be reordered within the group of graphics layers. However, the graphics layer in Map.graphics is always on top. Also, all graphics layers are always on top of TiledMapServiceLayers andDynamicMapServiceLayers.
Here are a few threads that discuss this and some possible workflow changes you can make to use different layer types to achieve your goal:
Reorder TiledMapServiceLayer and FeatureLayer
how to put a ArcGISDynamicMapServiceLayer on top of a GraphicsLayer
Cannot get featureLayer to display under DynamicMapServiceLayer
Robert- that makes sense to me. Thanks for the information and resources.
-Kush