Dear mariczone�?[ATTACH=CONFIG]33547[/ATTACH] this is after click Back , How can it click it to before [ATTACH=CONFIG]33548[/ATTACH]
Dear mariczonethis is my code<body class="claro"> <div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style='width:100%; height:100%;'> <div id="header" dojotype="dijit.layout.ContentPane" region="top"></div> <div dojotype="dijit.layout.ContentPane" id="leftPane" region="left"> <div dojoType="dijit.layout.AccordionContainer" id="accordion"> <div dojotype="dijit.layout.ContentPane" title="Legend"> <div id="legendDiv"></div> </div> <div dojotype="dijit.layout.ContentPane" title="Table of Contents"> <div id="TOC"></div> </div> </div> </div> <div id="mapDiv" dojotype="dijit.layout.ContentPane" region="center"> <div id="buttonDiv"> <button dojoType="dijit.form.Button" id="fullScreen">FullScreen</button> </div> </div> <div id="footer" dojotype="dijit.layout.ContentPane" region="bottom"></div> </div></body>------var map;require([ "esri/map", "dojo/dom", "dojo/on", "dojo/_base/array", "dojo/parser", "dojo/dom-construct", "dijit/layout/AccordionContainer", "dijit/layout/ContentPane", "dijit/layout/BorderContainer", "dojo/domReady!"], function (Map,dom, on, array, parser,domConstruct) { parser.parse() map = new Map("mapDiv", { basemap: "streets", center: [-81.792107, 26.150807], zoom: 8 }); dojo.attr("fullScreen","inEdit",false); dojo.connect(dojo.byId("fullScreen"),"onclick",function(evt){ var inEdit = dojo.attr("fullScreen","inEdit"); var changeLabel = "FullScreen"; if(inEdit == true){ dojo.attr("fullScreen","inEdit",false); changeLabel = "FullScreen"; dom.byId('leftPane').style.display = 'block'; dom.byId('header').style.display = 'block'; dom.byId('footer').style.display = 'block'; dojo.byId('mapDiv').style.width = "20%"; dojo.byId('mapDiv').style.height = "20%"; } else { dojo.attr("fullScreen","inEdit",true); changeLabel = "Back"; dom.byId('leftPane').style.display = 'none'; dom.byId('header').style.display = 'none'; dom.byId('footer').style.display = 'none'; dojo.byId('mapDiv').style.width = "100%"; dojo.byId('mapDiv').style.height = "100%"; } map.resize(); map.reposition(); dojo.byId("fullScreen").innerHTML = changeLabel; }); });-----html, body { height: 100%; width: 100%; margin: 0;}body { background-color: white; overflow: hidden; font-family:"Trebuchet MS";}#header { margin: 5px; border: solid 2px #224a54; height: 70px;}#leftPane { margin: 2px; padding: 2px; border: solid 2px #224a54; width: 20%;}#mapDiv { margin: 2px; border: solid 2px #224a54; -moz-border-radius: 4px;}#footer { margin: 2px; border: solid 2px #224a54; height: 40px;}#buttonDiv { position:absolute; right:40px; top:10px; z-Index:999;}
Dear Mr. JSkinn3: Hello, Thanks your again, now I have a problem, when I click the "full screen" button, the other panel is hide,but the map div is not expand to full screen, the display like this fromA [ATTACH=CONFIG]33545[/ATTACH]-->[ATTACH=CONFIG]33546[/ATTACH](I did't write this code(dojo.byId('map').style.display = 'none')),the map is not expand and the other div is change to blank�?? if I write the code (dojo.byId('map').style.display = 'none') the display is all blank �??I don�??t know why �??I hope your help again�?? thanks very much�?? xiaoyun 2014.5.2
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.