<div class="map-content"> <div class="map-close" style="display: none;"><a href="#">Close</a></div><!--buttons---> <div class="map-fullscreen" style="display: none;"><a href="#">Fullscreen</a></div> <div style='width:100%; height:100%'><object type="text/html" name ="mapPage" style='width:100%; height:100%' data='mapPage.html'> </object></div> </div>
mapTrigger.click(function(){ $FirstConstrainerWidth = $('.firstConstrainer').outerWidth(); console.log("locsizeConstWidth: " + $SizeConstrainerWidth + " locfirstConstrainer: " + $FirstConstrainerWidth); if ($SizeConstrainerWidth > $FirstConstrainerWidth) { $SizeConstrainerWidth=$FirstConstrainerWidth; } // scroll to top to make sure header is visible $('html, body').animate({scrollTop:0}, 'fast'); //animate the containers height to the height of the slideshow mapContainer.animate({ "height" : $('#sizeConstrainer').outerHeight() - $('#bg').outerHeight() - $('#footer').outerHeight(), // TODO:adjust the height of the map on window resize "width" : $SizeConstrainerWidth, "top" : $('#bg').outerHeight(), "left" : $SizeConstrainerLeft, "bottom" : $('#footer').outerHeight() }, 300, function() { // When the animation is complete // hide the loading indicator // Fade in the controls $(".map-close, .map-fullscreen").fadeIn("slow"); }); });
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.