popup in mapimagelayer

363
0
05-31-2018 11:09 PM
AmarShilpakar
New Contributor
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
0 Kudos
0 Replies