Ignore:
Timestamp:
Jun 17, 2011, 2:31:59 PM (14 years ago)
Author:
dennisw
Message:

Permalink button works. Resets everything though since it refreshes the page. Layers are displayed in the url which doesn't work for custom layers (since they are reset).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/heatmap.js

    r9264 r9269  
    22function init(){
    33
    4   var lat   = 52.14068;
    5   var lon   = 4.48319;
    6   var zoom  = 16;
     4  var lat = getURLParameter('lat');
     5  var lon = getURLParameter('lon');
     6  var zoom = getURLParameter('zoom');
     7
     8  if(lat=='null' || lon=='null' || zoom=='null'){
     9    var lat   = 52.14068;
     10    var lon   = 4.48319;
     11    var zoom  = 16;
     12  }
    713  var projection_wgs = new OpenLayers.Projection("EPSG:4326"); // WGS 1984
    814
Note: See TracChangeset for help on using the changeset viewer.