Changeset 9208
- Timestamp:
- May 19, 2011, 3:21:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/heatmap_extensions.js
r9207 r9208 43 43 44 44 if (user != ''){user='&accespoint__id='+user;} 45 else {user = '';}46 45 if (dataset != ''){dataset='&meetrondje__naam='+dataset;} 47 else {dataset = '';}48 46 if (wlnode != ''){wlnode='&accespoint__ssid='+wlnode;} 49 else {wlnode = '';}50 47 if (enc != ''){enc='&accespoint__encryptie='+enc;} 51 else {enc = '';}52 48 if (date != ''){date='&meetrondje__datum='+date;} 53 else {date = '';}54 49 if (colour != ''){colour='colour='+colour;} 55 else {colour = '&colour='+Math.floor(Math.random()*25 1)+','+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);} 56 51 if (lname != ''){lname=lname;} 57 52 else {lname = 'Custom Filter';} 58 53 59 var baseurl = "/website/tile/${z}/${x},${y}.png ";54 var baseurl = "/website/tile/${z}/${x},${y}.png?"; 60 55 61 56 OpenLayers.Layer.OSM.Overlay = OpenLayers.Class(OpenLayers.Layer.OSM, { 62 57 initialize: function(name, options) { 63 58 var url = [ 64 baseurl + "?" +colour + user + dataset + wlnode + enc + date59 baseurl + colour + user + dataset + wlnode + enc + date 65 60 ]; 66 61 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
Note:
See TracChangeset
for help on using the changeset viewer.