AnsweredAssumed Answered

404 error when switching order of layers??

Question asked by shakiltmbc on Oct 18, 2018
Latest reply on Oct 18, 2018 by shakiltmbc

var mil = new MapImageLayer({
url: {my feature layer url}


var layer = new TileLayer({
url:"background layer"


If I do the above, the layers are loaded but in the wrong order.

If I switch the code for the layers around I get "GET https://.../MapServer/tile/11/601/329?blankTile=false 404 (Not Found)" about 20 times

If I use map.reorder(mil, 2); it still gives the above errors.

However if I put map.reorder(mil, 2); in a setTimeout, it works after the timeout!


Any idea why it's acting this way? I just want a background layer and a feature layer!