.rotated270 { transform:rotate(270deg); -ms-transform:rotate(270deg); /* IE 9 */ -moz-transform:rotate(270deg); /* Firefox */ -webkit-transform:rotate(270deg); /* Safari and Chrome */ -o-transform:rotate(270deg); /* Opera */ }
map.infoWindow.setTitle("Identify Results"); //map.infoWindow.setContent(tc.domNode); if( (theLayerName != "Underground") && (idResults.length < 5) ) { // alert("less than 5 records"); map.infoWindow.resize(360, 200); dojo.query(".infowindow").removeClass("rotated270"); map.infoWindow.setContent(tc.domNode); } else if ( (theLayerName != "Underground") && (idResults.length >= 5) ) { // alert(">= 5 records"); map.infoWindow.resize(900, 425); dojo.query(".infowindow").addClass("rotated270"); map.infoWindow.setContent(tc.domNode); // tc = tcLarge; }
map.infoWindow.setTitle("Identify Results"); //map.infoWindow.setContent(tc.domNode); if( (theLayerName != "Underground") && (idResults.length < 5) ) { // alert("less than 5 records"); map.infoWindow.resize(200, 360); // narrower for less records map.infoWindow.setContent(tc.domNode); } else if ( (theLayerName != "Underground") && (idResults.length >= 5) ) { // alert(">= 5 records"); map.infoWindow.resize(360, 200); // wider for more records // map.infoWindow.orientation == 270; <- use = instead of == to set variable. This was causing your error. map.infoWindow.setContent(tc.domNode); // tc = tcLarge; }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.