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"
}
 }]
 });