I wish to have certain sublayers of a dynamic layer render at scales different from those in the layer properties. I can get the minScale and maxScale to work with one layer, but (for some reason), not another. The one on which it isn't working has cached tiles and I speculate that is the issue, but I honestly have no idea.
Here's the example that works:
var cities = new MapImageLayer({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer",
sublayers: [
{
id: 0,
minScale: 5000000,
maxScale: 24000
}
]
});
Here's the one that isn't working (truncated for ease). The minscale is set at a ridiculous number at the moment because I was trying to get it to render no matter how far zoomed out:
var transportation = new MapImageLayer({
url: "https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Transportation/MapServer",
sublayers: [{
id: 8,
minScale: 10000000,
maxScale: 1001
},{
id: 9,
minScale: 10000000,
maxScale: 1001
}]
});
Any insight would be greatly appreciated.
Thank you.