MapImageLayer Sublayer-mouse over function

503
0
05-22-2019 09:56 AM
JiYeam1
New Contributor

Hello,

I'm trying to make the mouseover function to MapImageLayer by converting the Sublayer into FeatureLayer.

I understand that sublayer of the MapImageLayer can be converted into FeatureLayer by using:

var sub = layer.findSublayerByID(0);

sub.createFeatureLayer();

Also, from the API that FeatureLayer can utilize the hitTest() function:

view.hitTest(event).then(function (response){

Would it be possible to have the sublayer to equipt with hitTest()?

0 Replies