Changeset 9653 for src/django_gheat/wlheatmap
- Timestamp:
- Sep 3, 2011, 12:14:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/wlheatmap/templates/js/LayerBase.js
r9648 r9653 52 52 */ 53 53 initialize: function(name, options) { 54 var url = get_balanced_urls(' http://', {{ settings.OSM_PROXY_CDN_DOMAINS|safe }}, '{{ settings.OSM_PREFIX }}/${z}/${x}/${y}.png');54 var url = get_balanced_urls('{{ settings.OSM_PROXY_CDN_DOMAINS_PROTOCOL }}', {{ settings.OSM_PROXY_CDN_DOMAINS|safe }}, '{{ settings.OSM_PREFIX }}/${z}/${x}/${y}.png'); 55 55 options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options); 56 56 var newArguments = [name, url, options]; … … 166 166 OpenLayers.Layer.OSM.Overlay2 = OpenLayers.Class(OpenLayers.Layer.OSM, { 167 167 initialize: function(name, options) { 168 var url = get_balanced_urls(' http://', {{ settings.DJANGO_CDN_DOMAINS|safe }},168 var url = get_balanced_urls('{{ settings.DJANGO_CDN_DOMAINS_PROTOCOL }}' , {{ settings.DJANGO_CDN_DOMAINS|safe }}, 169 169 '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=90,90,90'); 170 170 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); … … 181 181 OpenLayers.Layer.OSM.Overlay3 = OpenLayers.Class(OpenLayers.Layer.OSM, { 182 182 initialize: function(name, options) { 183 var url = get_balanced_urls(' http://', {{ settings.DJANGO_CDN_DOMAINS|safe }},183 var url = get_balanced_urls('{{ settings.DJANGO_CDN_DOMAINS_PROTOCOL }}', {{ settings.DJANGO_CDN_DOMAINS|safe }}, 184 184 '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=255,0,0&accespoint__organization__name__startswith=Wireless'); 185 185 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); … … 196 196 OpenLayers.Layer.OSM.Overlay4 = OpenLayers.Class(OpenLayers.Layer.OSM, { 197 197 initialize: function(name, options) { 198 var url = get_balanced_urls(' http://', {{ settings.DJANGO_CDN_DOMAINS|safe }},198 var url = get_balanced_urls('{{ settings.DJANGO_CDN_DOMAINS_PROTOCOL }}', {{ settings.DJANGO_CDN_DOMAINS|safe }}, 199 199 '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=50,150,50&signaal__gte=0&signaal__lte=100'); 200 200 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); … … 205 205 CLASS_NAME: "OpenLayers.Layer.Overlay" 206 206 }); 207 208 var foo;209 207 210 208 // create the layer styleMap by giving the default style a context
Note:
See TracChangeset
for help on using the changeset viewer.