AnsweredAssumed Answered

Reorder TiledMapServiceLayer and FeatureLayer

Question asked by DanielTrone on Feb 26, 2014
Latest reply on Feb 26, 2014 by btfou
I have a fairly basic use case; I need a basemap in the background, a feature layer in the middle, and the basemap reference layer with labels on top.

For some reason, I'm having a lot of trouble implementing it.  map.reorderLayer is not working.  Adding the second parameter to map.addLayer is not working.  I'm at a loss.  I'm using Feature Services created with AGOL for my Feature Layers.  I'm guessing that reordering different types of layers is the problem.  Is there any workaround?

See my jsFiddle for a very basic example:

Thanks for any help.