Changeset 9270 for src/django_gheat/website/static
- Timestamp:
- Jun 20, 2011, 3:14:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/heatmap_extensions.js
r9269 r9270 40 40 dateFormat: "dd/mm/yy", 41 41 }); 42 42 var testname = new Array(); 43 43 // add slider for signal strength filter 44 44 $("#slider").slider({ … … 59 59 initialize: function(name, options) { 60 60 var url = [ 61 "/website/tile/${z}/${x},${y}.png?colour= 0,255,0&signaal__gte=" + sig.values[0] + "&signaal__lte=" + sig.values[1]61 "/website/tile/${z}/${x},${y}.png?colour=250,250,0&signaal__gte=" + sig.values[0] + "&signaal__lte=" + sig.values[1] 62 62 ]; 63 63 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); … … 67 67 CLASS_NAME: "OpenLayers.Layer.Overlay" 68 68 }); 69 signallayer = new OpenLayers.Layer.OSM.Overlay("Signal strength: " + sig.values[0] + " - " + sig.values[1], {isBaseLayer: false, visibility: true}); 69 lname = "Signal strength: " + sig.values[0] + " - " + sig.values[1]; 70 signallayer = new OpenLayers.Layer.OSM.Overlay(lname, {isBaseLayer: false, visibility: true}); 70 71 map.addLayer(signallayer); 71 72 }, 73 }); 74 75 $("#filter_text").append("<a id=remove>test</a>"); 76 $("#remove").click(function(){ 77 map.removeLayer(signallayer); 72 78 }); 73 79
Note:
See TracChangeset
for help on using the changeset viewer.