Hello,
I am trying to create a feature layer from a MapImageLayer sublayer and it's not working.
Using the code snippet from the API (4.11) doc:
var sublayer = mapImageLayer.findSublayerById(0); // here it is finding the sublayer
sublayer.createFeatureLayer().then(function(featureLayer){ return featureLayer.load(); })
The error I am getting is :
Uncaught (in promise) TypeError: sublayer.createFeatureLayer(...).then is not a function
Any idea ?