PopupTemplate: can a picture be put on the right side of the description

710
1
02-22-2013 08:18 AM
JiehuaYi
New Contributor II
Hi all
I am using :
       Var popupTemplate =  new esri.dijit.PopupTemplate({
                                title:titleName,
        description:  HTMLContent,
        mediaInfos: [{
     "title": "",
     "caption": "",
     "type": "image",
     "value": {
     "sourceURL": url,
     "linkURL": url
     }
         }]     
              });
to display a picture together with some field values (texts) in a popup window. The picture is under the texts using the above code. Is there a way to display the picture on the right side of the texts in the popup window?

Thanks
jyi
0 Kudos
1 Reply
JiehuaYi
New Contributor II
I got the answer: The picutre can be displayed anywhere.

No need to define PopupTemplate. Using map.infowindow.setContent(html), where the html is <table>...</table>, and the picture is put inside  <a href= url> <img src=url width='32' height='32'/></a>, inside the <table> tags.
0 Kudos