Changeset 9147 for src/django_gheat/website/static
- Timestamp:
- May 4, 2011, 8:42:36 PM (14 years ago)
- Location:
- src/django_gheat/website/static
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/OpenStreetMap.js
r9139 r9147 154 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 "/website/tile/${z}/${x},${y}.png" 161 ]; 162 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, 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/django_gheat/website/static/heatmap.js
r9139 r9147 23 23 layerHeatmap = new OpenLayers.Layer.OSM.Overlay1("Overlay 1", {isBaseLayer: false, visibility: true}); 24 24 map.addLayer(layerHeatmap); 25 26 layerHeatmap2 = new OpenLayers.Layer.OSM.Overlay2("Overlay 2", {isBaseLayer: false, visibility: false}); 27 map.addLayer(layerHeatmap2); 25 28 26 29 var lon = 4.48907;
Note:
See TracChangeset
for help on using the changeset viewer.