Changeset 9166 for src/django_gheat/website/static
- Timestamp:
- May 8, 2011, 8:59:15 PM (14 years ago)
- Location:
- src/django_gheat/website/static
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/OpenStreetMap.js
r9147 r9166 158 158 initialize: function(name, options) { 159 159 var url = [ 160 "/website/tile/${z}/${x},${y}.png "160 "/website/tile/${z}/${x},${y}.png?colour=255,0,0" 161 161 ]; 162 162 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); … … 167 167 CLASS_NAME: "OpenLayers.Layer.Overlay2" 168 168 }); 169 170 OpenLayers.Layer.OSM.Overlay3 = OpenLayers.Class(OpenLayers.Layer.OSM, { 171 initialize: function(name, options) { 172 var url = [ 173 "/website/tile/${z}/${x},${y}.png?colour=0,0,255&accespoint__ssid__icontains=WirelessLeiden" 174 ]; 175 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); 176 var newArguments = [name, url, options]; 177 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); 178 }, 179 180 CLASS_NAME: "OpenLayers.Layer.Overlay3" 181 }); -
src/django_gheat/website/static/heatmap.js
r9147 r9166 24 24 map.addLayer(layerHeatmap); 25 25 26 layerHeatmap2 = new OpenLayers.Layer.OSM.Overlay2(" Overlay 2", {isBaseLayer: false, visibility: false});26 layerHeatmap2 = new OpenLayers.Layer.OSM.Overlay2("All Access points", {isBaseLayer: false, visibility: false}); 27 27 map.addLayer(layerHeatmap2); 28 29 layerHeatmap3 = new OpenLayers.Layer.OSM.Overlay3("Wireless Leiden Only", {isBaseLayer: false, visibility: true}); 30 map.addLayer(layerHeatmap3); 28 31 29 32 var lon = 4.48907;
Note:
See TracChangeset
for help on using the changeset viewer.