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
  • TabularUnified src/django_gheat/website/static/heatmap_extensions.js

    r9267 r9269  
    11// Uses zoomlevel and mouseposition to call the nodelist.py view. View returns nodes in json format which is read and printed in document element.
    2 function getNodeList(zoomlevel, mousepos) {
     2function getNodeList(zoomlevel, mousepos){
    33  $.getJSON("/website/nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon,
    4     function(json) {
     4    function(json){
    55      content = 'Wireless Leiden nodes on mouseposition:<br /><b>';
    66      $.each(json, function(i,json){
     
    1010      $("#node_list").html(content);
    1111    }
     12  );
     13}
     14
     15// Right way to get url parameters?: http://stackoverflow.com/questions/1403888/get-url-parameter-with-jquery/1404100#1404100
     16function getURLParameter(name) {
     17  return decodeURI(
     18    (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
    1219  );
    1320}
Note: See TracChangeset for help on using the changeset viewer.