Changeset 9208


Ignore:
Timestamp:
May 19, 2011, 3:21:39 PM (14 years ago)
Author:
dennisw
Message:

Some cleanup.

File:
1 edited

Legend:

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

    r9207 r9208  
    4343
    4444  if (user != ''){user='&accespoint__id='+user;}
    45   else {user = '';}
    4645  if (dataset != ''){dataset='&meetrondje__naam='+dataset;}
    47   else {dataset = '';}
    4846  if (wlnode != ''){wlnode='&accespoint__ssid='+wlnode;}
    49   else {wlnode = '';}
    5047  if (enc != ''){enc='&accespoint__encryptie='+enc;}
    51   else {enc = '';}
    5248  if (date != ''){date='&meetrondje__datum='+date;}
    53   else {date = '';}
    5449  if (colour != ''){colour='colour='+colour;}
    55   else {colour = '&colour='+Math.floor(Math.random()*251)+','+Math.floor(Math.random()*251)+','+Math.floor(Math.random()*251);}
     50  else {colour = '&colour='+Math.floor(Math.random()*256)+','+Math.floor(Math.random()*256)+','+Math.floor(Math.random()*256);}
    5651  if (lname != ''){lname=lname;}
    5752  else {lname = 'Custom Filter';}
    5853
    59   var baseurl = "/website/tile/${z}/${x},${y}.png";
     54  var baseurl = "/website/tile/${z}/${x},${y}.png?";
    6055
    6156  OpenLayers.Layer.OSM.Overlay = OpenLayers.Class(OpenLayers.Layer.OSM, {
    6257    initialize: function(name, options) {
    6358      var url = [
    64         baseurl + "?" + colour + user + dataset + wlnode + enc + date
     59        baseurl + colour + user + dataset + wlnode + enc + date
    6560      ];
    6661      options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
Note: See TracChangeset for help on using the changeset viewer.