I have a MapImageLayer who contains both featureLayer and raster (referenced .tif).
I am able to apply a "definitionExpression" on the feature layer with an SQL expression but not on the raster.
var layer = new MapImageLayer({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer",
sublayers: [
{
id: 1, // for example this one is a raster
definitionExpression: "Pixel > 6" // Which SQL where clause here ????? Pixel ? PixelValue ?
},
{
id: 0, // for example this one is a FeatureLayer
definitionExpression: "pop2000 > 100000" // Works on a FeatureLayer !!!!!
}
]
});
Is it possible to query a raster on a MapImageLayer ? Or do I have to query an ImageLayer ?
My goal is then to apply a client slider on the raster like in this example : https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_raster
Is it possible to apply a slider on a raster contents in a MapImageLayer ? Or maybe this slider only works on ImageryLayer ?
Thanks