Changeset 7550
- Timestamp:
- 07/18/08 16:40:38 (1 month ago)
- Files:
-
- sandbox/architect/index.php (modified) (5 diffs)
- sandbox/architect/scripts/config.js (modified) (1 diff)
- sandbox/architect/scripts/mapConfig.js (modified) (1 diff)
- sandbox/architect/style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/architect/index.php
r7503 r7550 9 9 <![endif]--> 10 10 11 <!-- Include the libraries --> 11 12 <script type="text/javascript" src="openlayers/OpenLayers.js"></script> 12 13 <script type="text/javascript" src="scripts/mootools12.js"></script> 14 <!-- Include general OLArchitect Specific Libraries --> 13 15 <script type="text/javascript" src="scripts/sortable.js"></script> 14 16 <script type="text/javascript" src="scripts/util.js"></script> 15 17 <script type="text/javascript" src="scripts/config.js"></script> 18 <!-- Include the individual config files --> 19 <script type="text/javascript" src="scripts/mapConfig.js"></script> 16 20 <script type="text/javascript" src="scripts/layerConfig.js"></script> 17 21 <script type="text/javascript" src="scripts/panelConfig.js"></script> … … 19 23 20 24 <title>OL Architect - Open Layers Map Creation Application</title> 25 21 26 <meta name="description" content="OLArchitect - OpenLayers Architect - An OpenLayers based web application tool for developing online maps." /> 22 27 <meta name="keywords" content="OLArchitect, OpenLayers Architect, OpenLayers, OLON, map toolkit, make a map, map frontend, mapping, gis software, free mapping tools, openlayers application" /> 28 23 29 <script type="text/javascript"> 24 30 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); … … 54 60 </div> 55 61 <div id="toolBox1Content" class="toolBoxContent"> 62 <!-- MAP CONFIG --> 63 <!-- MAPS --> 64 <div id="toolBox1MapContainer"> 65 <div class="tb1lcHeader"> 66 Map Configuration 67 <div id="toggleMapList"> 68 <img id="toggleMapListImg" src="images/divmin.png" alt="Toggle OLArchitect Map List"/> 69 </div> 70 </div> 71 <div id="innerMapListContent"> 72 <div id="tb1NewMap"> 73 <input type="text" id="tb1NewMapForm" value="Map Name" size=17 /><br /> 74 Theme: <script type="text/javascript"> 75 $('tb1NewMap').innerHTML += createSelectList('tb1MapListThemeDropdown', 'Theme Picklist', ' ', getThemeMenu()); 76 </script> 77 <br /> 78 <input type="button" id="tb1NewMapButton" value="Configure Map" /> 79 </div> 80 </div> 81 </div> 82 <!-- END MAPS --> 83 <br /> 84 56 85 <!-- LAYERS --> 57 86 <div id="toolBox1LayerContainer"> … … 114 143 <!--Panel list--> 115 144 <div id="tb1Panels"> 116 <!-- 117 <div id="tb1PanelContainer"> 118 <div id="tb1Panel0Header" class="tb1PanelHeader"> 119 Default Panel 120 <div id="tbLayerEditDiv0Edit" class="tbLayerEditDiv">Edit</div> 121 </div> 122 <div id="tb1Panel0ListArea" class="tb1PanelListArea"> 123 <ol class="PanelListItems"> 124 </ol> 125 </div> 126 </div> 127 --> 145 <!--Panels go here --> 128 146 </div> 129 147 <!-- end list --> … … 165 183 </div> 166 184 <script type="text/javascript"> 167 185 var mapToggle = new Fx.Slide('innerMapListContent'); 186 $('toggleMapList').addEvent('click', function(e){ 187 e.stop(); 188 mapToggle.toggle(); 189 /*Change the arrow image*/ 190 if(mapToggle.open) 191 $('toggleMapListImg').src = "images/divminup.png"; 192 else 193 $('toggleMapListImg').src = "images/divmin.png"; 194 }); 195 168 196 169 197 var layerToggle = new Fx.Slide('innerLayerListContent'); sandbox/architect/scripts/config.js
r7548 r7550 135 135 } 136 136 137 138 /*Fill this list with themes*/ 139 function getThemeMenu(){ 140 //id, name, value, text 141 var menu = [ [['Theme0'],['ThemeName'],['Theme Name'],['Theme Name']] ]; 142 return menu; 143 } 144 137 145 /*======================= 138 146 | getEmptyToolBox2HTML(display,type) sandbox/architect/scripts/mapConfig.js
r7548 r7550 36 36 /*=======================*/ 37 37 /*add the html to the toolbox*/ 38 tbid.innerHTML = getEmptyToolBox2HTML("block", " Panel");38 tbid.innerHTML = getEmptyToolBox2HTML("block", "Map"); 39 39 /*Controls that belong to this panel'*/ 40 40 // $('tb2blcBase').innerHTML += "Control Selected " + createSelectList('tb2ControlListDropdown', 'Control Picklist', 'changeControl(this, ' + ID + ',\"' + tb1SelectedControl.value + '\", true );', getControlListMenu()); //Layer List Dropdown 41 41 /*Create the save and reset buttons*/ 42 $('tb2blcButtons').innerHTML += "<br /><br /><input id='saveButton' type='button' class='" + ID + "'value='Save'><br />"; //Save Button42 $('tb2blcButtons').innerHTML += "<br /><br /><input id='saveButton' type='button' value='Save'><br />"; //Save Button 43 43 44 44 /*Populate ToolBox 2's layer options with the layer selected in ToolBox 1's layer list dropdown - call changeLayer and pass in the controlList from toolbox1*/ 45 45 //name, id 46 populateMap(tb1MapName.value); 47 46 populateMap(tb1MapName.value); 48 47 } 48 49 /*======================= 50 | populateMap 51 | 52 | populates the map with empty settings 53 =========================*/ 54 function populateMap(mName){ 55 $('tb2blcCommon').innerHTML += "Map Name: " + createInputTextBox('layoutMapConfigTitle','title', mName, 30); 56 $('tb2blcCommon').innerHTML += "<br /> Theme " + createSelectList('layoutMapConfigTheme', 'theme', '', getThemeMenu()); 57 $('tb2blcCommon').innerHTML += "<br /><br />"; 58 $('tb2blcCommon').innerHTML += "<strong>Center</strong><br/> Lon" + createInputTextBox('layoutMapConfigLon','lon', '', 2) + " Lat" + createInputTextBox('layoutMapConfigLat','lat', '', 2) + "<br /> Zoom" + createInputTextBox('layoutMapConfigZoom','zoom', '', 2) + " Dragging" + createSelectList('layoutControlConfigDragging', 'dragging', '', getNullMenu()); 59 60 $('tb2blcCommon').innerHTML += "<br/><br/><strong>Extents</strong><br/><strong>Max Extent</strong><br/> MinX" + createInputTextBox('layoutMapConfigMaxExtenMinX','MaxExtentMinX', '', 2) + " MinY" + createInputTextBox('layoutMapConfigMaxExtentMinY','MaxExtentMinY', '', 2) + "<br/>MaxX" + createInputTextBox('layoutMapConfigMaxExtentMaxX','MaxExtentMaxX', '', 2) + " MaxY" + createInputTextBox('layoutMapConfigMaxExtentMaxY','MaxExtentMaxY', '', 2); 61 62 $('tb2blcCommon').innerHTML += "<br/><strong>Min Extent</strong><br/> Lon" + createInputTextBox('layoutMapConfigLon','lon', '', 2) + " Lat" + createInputTextBox('layoutMapConfigLat','lat', '', 2) + "<br /> Zoom" + createInputTextBox('layoutMapConfigZoom','zoom', '', 2) + " Dragging" + createSelectList('layoutControlConfigDragging', 'dragging', '', getNullMenu()); 63 64 65 } sandbox/architect/style.css
r7503 r7550 197 197 overflow:hidden; 198 198 } 199 200 /*======================= 201 | Map 202 =========================*/ 203 #toolBox1MapContainer { 204 background-color:#9D9483; 205 border:1px solid #756e61; 206 } 207 .tb1lcHeader { 208 background-color:#567D8C; 209 border-bottom:1px solid #415e69; 210 font-weight:bold; 211 padding:2px 0px 2px 5px; 212 position:relative; 213 } 214 215 #innerMapListContent{ 216 padding:5px; 217 } 218 #tb1MapListArea { 219 background-color:#a99f8d; 220 border:1px solid #7e776a; 221 padding:5px; 222 margin:5px 10px 5px 10px; 223 } 224 /*Layer Items*/ 225 #tbMapOptionContainer{ 226 background-color:#476773; 227 height:100%; 228 position:absolute; 229 right:0px; 230 width:25%; 231 top:0px; 232 } 233 #tb1NewMap { 234 } 235 #tbMapListNumLayers { 236 padding:5px; 237 text-align:center; 238 } 239 #toggleMapList { 240 position:absolute; 241 right:10px; 242 top:2px; 243 } 199 244 /*======================= 200 245 | Layer list
