Customize popups from web template?

741
3
01-25-2012 10:35 AM
ElizabethMiller
New Contributor III
Is it possible to change the size of the popups that appear on the web template? They are the wrong size for my data -- they are too large in the vertical dimension and too narrow horizontally, so that they cut off the right side of the attribute information.
0 Kudos
3 Replies
KellyHutchins
Esri Frequent Contributor
Yes you can use the InfoWindow's resize method to do this. Here's an example that changes the size of the popup for a web map.

 mapDeferred.then(function(response){
        map = response.map;
           
       map.infoWindow.resize(200,200);
      
       dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
    
});


0 Kudos
JuneAcosta
Occasional Contributor III
I would like to do the same customization on the simple Map template that I downloaded from ArcGIS online. Is this what you mean by web template- a template from ArcGIS online?
0 Kudos
JuneAcosta
Occasional Contributor III
I downloaded the Simple Map viewer and need to resize the poup for the same reasons. Which file do I modify to add this snippet of code?
0 Kudos