- Timestamp:
- Apr 19, 2011, 11:52:05 AM (14 years ago)
- Location:
- src/gheat
- Files:
-
- 244 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gheat/script/OpenStreetMap.js
r8990 r9082 133 133 "http://f.tah.openstreetmap.org/Tiles/maplint/${z}/${x}/${y}.png" 134 134 ]; 135 options = OpenLayers.Util.extend({ numZoomLevels: 1 8, isBaseLayer: false, visibility: false }, options);135 options = OpenLayers.Util.extend({ numZoomLevels: 16, isBaseLayer: false, visibility: false }, options); 136 136 var newArguments = [name, url, options]; 137 137 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); … … 145 145 initialize: function(name, options) { 146 146 var url = [ 147 " overlay_1/${z}/${x},${y}.png"147 "huub_1/${z}/${x},${y}.png" 148 148 ]; 149 options = OpenLayers.Util.extend({ numZoomLevels: 1 9}, options);149 options = OpenLayers.Util.extend({ numZoomLevels: 16 }, options); 150 150 var newArguments = [name, url, options]; 151 151 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); … … 158 158 initialize: function(name, options) { 159 159 var url = [ 160 " overlay_2/${z}/${x},${y}.png"160 "huub_2/${z}/${x},${y}.png" 161 161 ]; 162 options = OpenLayers.Util.extend({ numZoomLevels: 1 9}, options);162 options = OpenLayers.Util.extend({ numZoomLevels: 16 }, options); 163 163 var newArguments = [name, url, options]; 164 164 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); … … 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 "huub_3/${z}/${x},${y}.png" 174 ]; 175 options = OpenLayers.Util.extend({ numZoomLevels: 16 }, 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/gheat/script/heatmap.js
r8990 r9082 17 17 layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik"); 18 18 map.addLayer(layerMapnik); 19 layerHeatmap = new OpenLayers.Layer.OSM.Overlay1(" Overlay_1", {isBaseLayer: false, visibility: true});19 layerHeatmap = new OpenLayers.Layer.OSM.Overlay1("Huub_1", {isBaseLayer: false, visibility: true}); 20 20 map.addLayer(layerHeatmap); 21 layerHeatmap = new OpenLayers.Layer.OSM.Overlay2("Overlay_2", {isBaseLayer: false, visibility: true}); 21 layerHeatmap = new OpenLayers.Layer.OSM.Overlay2("Huub_2", {isBaseLayer: false, visibility: true}); 22 map.addLayer(layerHeatmap); 23 layerHeatmap = new OpenLayers.Layer.OSM.Overlay3("Huub_3", {isBaseLayer: false, visibility: true}); 22 24 map.addLayer(layerHeatmap); 23 25
Note:
See TracChangeset
for help on using the changeset viewer.