- Timestamp:
- Mar 24, 2011, 5:37:34 PM (14 years ago)
- Location:
- src/gheat
- Files:
-
- 99 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gheat/index.html
r8987 r8988 13 13 <div id="wrapper"> 14 14 <div id="header"> 15 <a href="index.html"><img src=" http://localhost:8080/img/logo.jpg" border="0" style="float: left;"/></a>15 <a href="index.html"><img src="img/logo.jpg" border="0" style="float: left;"/></a> 16 16 <font style="font-size:24px; color:white;">Stichting Wireless Leiden</font><br /> 17 17 <font style="font-size:46px; color:white;">Heatmap</font> … … 19 19 <div id="content"> 20 20 <h1>Info</h1><br /> 21 Blablabla bla blablablabla.21 Info 22 22 </div> 23 23 <div id="heatmap"></div> -
src/gheat/script/OpenStreetMap.js
r8987 r8988 140 140 CLASS_NAME: "OpenLayers.Layer.OSM.Maplint" 141 141 }); 142 143 144 OpenLayers.Layer.OSM.Heatmap = OpenLayers.Class(OpenLayers.Layer.OSM, { 145 initialize: function(name, options) { 146 var url = [ 147 "classic/${z}/${x},${y}.png" 148 ]; 149 options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options); 150 var newArguments = [name, url, options]; 151 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); 152 }, 153 154 CLASS_NAME: "OpenLayers.Layer.Heatmap" 155 }); -
src/gheat/script/heatmap.js
r8987 r8988 1 var map;2 var vectorLayer;3 4 1 function init(){ 5 map = new OpenLayers.Map('heatmap', {controls: [ 6 new OpenLayers.Control.Navigation(), 7 new OpenLayers.Control.PanZoomBar(), 8 new OpenLayers.Control.ScaleLine() 9 ]}); 2 map = new OpenLayers.Map('heatmap', { 3 controls: [ 4 new OpenLayers.Control.Navigation(), 5 new OpenLayers.Control.PanZoomBar(), 6 new OpenLayers.Control.ScaleLine(), 7 new OpenLayers.Control.LayerSwitcher() 8 ], 9 maxExtent: new OpenLayers.Bounds(-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892), 10 numZoomLevels:18, 11 maxResolution:156543.0339, 12 units:'m', 13 projection: "EPSG:900913", 14 displayProjection: new OpenLayers.Projection("EPSG:4326") 15 }); 16 10 17 layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik"); 11 18 map.addLayer(layerMapnik); 19 layerHeatmap = new OpenLayers.Layer.OSM.Heatmap("Heatmap", {isBaseLayer: false, visibility: true}); 20 map.addLayer(layerHeatmap); 21 12 22 var lon = 4.4585017; 13 23 var lat = 52.1406583;
Note:
See TracChangeset
for help on using the changeset viewer.