Hi, I would like to use MapImageLayer and his method SubLayer to do a query; layerimage is a MapImageLayer, I extract sublayer using findSublayerById, next I done filter sublayer using a definitionExpression. But when I do a Query in this SubLayer dont work, nothing happen. After resolve promise of queryFeatures this result would be FeatureSet but nothing happen have not created object FeatureSet
What I can do?
Thanks for yours help
this.layerimage.when(()=>{
this.coberture=this.layerimage.findSublayerById(0);
this.coberture.definitionExpression="COBERT IN( 'forest' )"
this.coberture.popupTemplate=this.template
this.queryCober=this.coberturas.createQuery()
this.queryCober.returnGeometry = true
this.queryCober.outFields=["COBER"]
this.queryCober.geometry=this.mapView.extent
this.coberturas.queryFeatures().then((response=>{
console.log(response)
}))
})