harshav

popupTemplate displaying at different place

Discussion created by harshav on Aug 2, 2020

I am trying to add popupTemplate to the MapImageLayer, on the click of any pins on the Map the popup is loading/pointing at different place.

 

var mapDataLayer = new MapImageLayer({
url: sArcgisURL,
sublayers: [
{
id: sSelectedMapLayer,
definitionExpression: "MAP_UID = '"+mapId+"'",
popupTemplate:{
title:"Machine Details",
content:"<b>PIN:</b> 1RW8245GFTX798456<br><b> Dealer:</b> Nortrax <br><b>Engine Hours:</b> 365<br><b>Last Call In:</b> JUly 15 2015"
}
}]
});

Attachments

Outcomes