cliveswan

ROTATE infoWindow

Discussion created by cliveswan on Mar 23, 2012
Latest reply on Mar 23, 2012 by kdoman
Hi,

I need to display the infoWindow portrait if less than 5 records AND landscape if more than 5 records.

Getting getinfoWinTabContainer error, details: [object error]

Code:
>>>>>>>>>>>>>>>>>>>>>>>>
map.infoWindow.setTitle("Identify Results");
                //map.infoWindow.setContent(tc.domNode);
               
                if( (theLayerName != "Underground") && (idResults.length  == 1) )
  {
   // alert("1 record");
   map.infoWindow.resize(360, 200);
                 map.infoWindow.setContent(tc.domNode);
         }
  else if ( (theLayerName != "Underground") && (idResults.length  > 1) )
                {
                   // alert("> 1 record");
     map.infoWindow.resize(900, 425);
                 map.infoWindow.orientation == 270;
                 map.infoWindow.setContent(tc.domNode);
                 // tc = tcLarge;

   
  }

Outcomes