- Timestamp:
- Feb 7, 2010, 3:58:33 PM (10 years ago)
- Location:
- trunk/npemap.org.uk/static/tiles
- Files:
-
- 8 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/npemap.org.uk/static/tiles/grid.css
r654 r715 258 258 } 259 259 260 div#infobox { 261 margin-top: 1.5em; 262 margin-left: 2.5em; 263 margin-right: 2.5em; 264 margin-bottom: 0.5em; 265 padding: 1em; 266 background-color: #DDFF9b; 267 text-align: center; 268 } 269 260 270 261 271 ul { -
trunk/npemap.org.uk/static/tiles/mapTiles.js
r677 r715 100 100 function showPostcodeWindow(easting, northing, x, y) { 101 101 hideMarkerWindow(); 102 if(postcodeFormElement == null) { 103 // Decade based view lacks a postcode submit form 104 return; 105 } 102 106 103 107 var easting = trimSixDigits(Math.round(easting)); … … 156 160 157 161 function closePostcodeWindow() { 158 postcodeFormElement.style.display = 'none'; 159 markerElement.style.visibility = 'hidden'; 162 if(postcodeFormElement != null) { 163 postcodeFormElement.style.display = 'none'; 164 markerElement.style.visibility = 'hidden'; 165 } 160 166 } 161 167 … … 185 191 186 192 function hideMarkerWindow() { 187 $('postcode_detail_window').style.display = 'none'; 193 var pdw = $('postcode_detail_window'); 194 if(pdw != null ) { 195 pdw.style.display = 'none'; 196 } 188 197 } 189 198 … … 248 257 Element.show('zoomin_disabled'); 249 258 Element.show('showHideMarkers'); 250 259 } else { 251 260 Element.show('zoomin_enabled'); 252 261 Element.hide('zoomin_disabled'); … … 259 268 var newHeight = YAHOO.util.Dom.getViewportHeight(); 260 269 if (screenHeight != newHeight || screenWidth != newWidth) { 261 270 screenWidth = YAHOO.util.Dom.getViewportWidth(); 262 271 screenHeight = YAHOO.util.Dom.getViewportHeight(); 263 272 drawTable(); … … 291 300 292 301 293 function initializePage( ) {294 295 302 function initializePage(skipMarkers) { 303 markerElement = $('marker'); 304 postcodeFormElement = $('postcode_form'); 296 305 mainPageElement = $('main_page'); 297 306 298 updateShowMarkers(); 307 if(skipMarkers != null && skipMarkers) { 308 } else { 309 updateShowMarkers(); 310 } 299 311 parseQueryString(); 300 312 fixZoomButton(); … … 421 433 function drawExisting() { 422 434 if (shouldWeShowMarkers()) { 423 var url = " ../../cgi/get-postcodes.fcgi";435 var url = "/cgi/get-postcodes.fcgi"; 424 436 var params = "mineasting=" + minEasting + "000&maxeasting=" + maxEasting + "000&minnorthing=" + minNorthing + "000&maxnorthing=" + maxNorthing+"000" + "&grid=" + grid; 425 437 … … 537 549 538 550 function updatePermalink() { 539 $("permalink").href = "#" + getLink(); 551 $("permalink").href = "#" + getLink(); 552 if( $("latestMapLink") != null ) { 553 $("latestMapLink").href = "/tiles/map.html#" + getLink(); 554 } 540 555 location.href = '#'+getLink(); 541 556 } … … 560 575 561 576 // Do the request 562 var url = " ../../cgi/get-meta.fcgi";577 var url = "/cgi/get-meta.fcgi"; 563 578 var params = "format=js&callback=showMeta&" + req; 564 579 var myAjax = new Ajax.Request(url, {
Note: See TracChangeset
for help on using the changeset viewer.