AnsweredAssumed Answered

popup in mapimagelayer

Question asked by shilpakaramar on May 31, 2018
How to show a popup with a file name of mapimage when mapimagelayer is clicked ?
Below is my code...
var map = new Map('map',{
extent: initialExtent,
basemap: first,
navigationMode: "classic",
infoWindow: popup
});
var mapImage = new MapImage({
'extent': Extent,
'href': "images/test.svg",
'height': "1080",
'width':"1080"
});
ImageLayer = new MapImageLayer();
map.addLayer(ImageLayer);
}
ImageLayer.addImage(mapImage);
I want to show a popup with mapimage name. Like test.svg in popup

Outcomes