Hi,
Is it possible to query for extent a Raster Layer (as a MapImageLayer sublayer) ?
For other types of sublayers I'm using QueryTask and the executeForExtent method and it works ok (below), however I'm getting an error when querying Raster Layers "{"error":{"code":400,"message":"Invalid or missing input parameters.","details":[]}}". I have tried various combination of queries to no avail.
As an example how would you query fo extent the hillshade raster in this sandbox example? ArcGIS API for JavaScript Sandbox , when looking at the rest endpoint it has "Supports Returning Query Extent: true" , so it might be possible?
const query = new Query({
outSpatialReference: spatialReference.wkid,
geometry: view.extent
});
const queryTask2 = new QueryTask({
url
});
queryTask2.executeForExtent(query)