Changeset 8990
- Timestamp:
- Mar 25, 2011, 4:20:23 PM (14 years ago)
- Location:
- src/gheat
- Files:
-
- 136 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gheat/script/OpenStreetMap.js
r8988 r8990 142 142 143 143 144 OpenLayers.Layer.OSM. Heatmap= OpenLayers.Class(OpenLayers.Layer.OSM, {144 OpenLayers.Layer.OSM.Overlay1 = OpenLayers.Class(OpenLayers.Layer.OSM, { 145 145 initialize: function(name, options) { 146 146 var url = [ 147 " classic/${z}/${x},${y}.png"147 "overlay_1/${z}/${x},${y}.png" 148 148 ]; 149 149 options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options); … … 152 152 }, 153 153 154 CLASS_NAME: "OpenLayers.Layer. Heatmap"154 CLASS_NAME: "OpenLayers.Layer.Overlay1" 155 155 }); 156 157 OpenLayers.Layer.OSM.Overlay2 = OpenLayers.Class(OpenLayers.Layer.OSM, { 158 initialize: function(name, options) { 159 var url = [ 160 "overlay_2/${z}/${x},${y}.png" 161 ]; 162 options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options); 163 var newArguments = [name, url, options]; 164 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); 165 }, 166 167 CLASS_NAME: "OpenLayers.Layer.Overlay2" 168 }); -
src/gheat/script/heatmap.js
r8988 r8990 17 17 layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik"); 18 18 map.addLayer(layerMapnik); 19 layerHeatmap = new OpenLayers.Layer.OSM.Heatmap("Heatmap", {isBaseLayer: false, visibility: true}); 19 layerHeatmap = new OpenLayers.Layer.OSM.Overlay1("Overlay_1", {isBaseLayer: false, visibility: true}); 20 map.addLayer(layerHeatmap); 21 layerHeatmap = new OpenLayers.Layer.OSM.Overlay2("Overlay_2", {isBaseLayer: false, visibility: true}); 20 22 map.addLayer(layerHeatmap); 21 23
Note:
See TracChangeset
for help on using the changeset viewer.