Changeset 9147
- Timestamp:
- May 4, 2011, 8:42:36 PM (14 years ago)
- Location:
- src/django_gheat/website
- Files:
-
- 1 added
- 3 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; -
src/django_gheat/website/urls.py
r9139 r9147 10 10 ('^$', HomeView.as_view()) 11 11 ) 12 13 urlpatterns += patterns('website.tile', 14 url( 15 # Example : today/fire/12/3,2.png 16 regex = r'^tile/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$', 17 view = 'serve_tile', 18 name = 'serve_tile', 19 ), 20 )
Note:
See TracChangeset
for help on using the changeset viewer.