daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.     var map;
  3.     require([
  4.         "dijit/layout/BorderContainer",
  5.         "dijit/layout/ContentPane",
  6.         "esri/map",
  7.         "dijit/layout/TabContainer",
  8.         "esri/dijit/Legend"
  9.     ], function(
  10.         BorderContainer,
  11.         ContentPane,
  12.         Map,
  13.         TabContainer,
  14.         Legend
  15.     ){
  16.         map = new esri.Map("map", {
  17.             center: [-85.772, 38.255],
  18.             zoom: 10,
  19.             basemap: "satellite"
  20.         });
  21.     });
  22. </script>
  23.      
  24. <body class="claro">
  25. <div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:false" style="width:100%; height:100%;">
  26.  
  27.     <div id="header" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'">
  28.         This is the header section
  29.         <div id="subheader">subheader</div>
  30.     </div>
  31.  
  32.     <div data-dojo-type="dijit/layout/ContentPane" id="leftPane" data-dojo-props="region:'left'">
  33.         <div data-dojo-type="dijit/layout/TabContainer">
  34.             <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Legend', selected:true">
  35.                 <div id="legendDiv"></div>
  36.             </div>
  37.             <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Tab 2'" >
  38.                 Content for the second tab
  39.             </div>
  40.         </div>
  41.     </div>
  42.  
  43.     <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"></div>
  44.  
  45.     <div id="footer" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom'">
  46.         this is the footer section
  47.     </div>
  48.  
  49. </div>
  50. </body>
  51.      
  52. var map;
  53. require([
  54.     "dijit/layout/BorderContainer",
  55.     "dijit/layout/ContentPane",
  56.     "esri/map",
  57.     "dijit/layout/TabContainer",
  58.     "esri/dijit/Legend",
  59.     "dojo/parser","dojo/domReady!"
  60. ], function(
  61.     BorderContainer,
  62.     ContentPane,
  63.     Map,
  64.     TabContainer,
  65.     Legend,
  66.     parser
  67. ){
  68.     parser.parse();
  69.     map = new esri.Map("map", {
  70.         center: [-85.772, 38.255],
  71.         zoom: 10,
  72.         basemap: "satellite"
  73.     });
  74. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top