Ignore:
Timestamp:
Aug 26, 2011, 8:54:24 PM (13 years ago)
Author:
rick
Message:

Map a SSID to an organization to play nice with differnt SSIDs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/wlheatmap/templates/js/LayerBase.js

    r9549 r9579  
    168168OpenLayers.Layer.OSM.Overlay2 = OpenLayers.Class(OpenLayers.Layer.OSM, {
    169169    initialize: function(name, options) {
    170         var url = get_balanced_urls('http://', {{ settings.DJANGO_CDN_DOMAINS|safe }}, '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=90,90,90');
     170        var url = get_balanced_urls('http://', {{ settings.DJANGO_CDN_DOMAINS|safe }},
     171          '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=90,90,90');
    171172        options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
    172173        var newArguments = [name, url, options];
     
    182183OpenLayers.Layer.OSM.Overlay3 = OpenLayers.Class(OpenLayers.Layer.OSM, {
    183184    initialize: function(name, options) {
    184         var url = get_balanced_urls('http://', {{ settings.DJANGO_CDN_DOMAINS|safe }}, '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=255,0,0&accespoint__ssid__icontains=WirelessLeiden');
     185        var url = get_balanced_urls('http://', {{ settings.DJANGO_CDN_DOMAINS|safe }},
     186          '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=255,0,0&accespoint__organization=WirelessLeiden');
    185187        options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
    186188        var newArguments = [name, url, options];
     
    196198OpenLayers.Layer.OSM.Overlay4 = OpenLayers.Class(OpenLayers.Layer.OSM, {
    197199  initialize: function(name, options) {
    198     var url = get_balanced_urls('http://', {{ settings.DJANGO_CDN_DOMAINS|safe }}, '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=50,150,50&signaal__gte=0&signaal__lte=100');
     200    var url = get_balanced_urls('http://', {{ settings.DJANGO_CDN_DOMAINS|safe }},
     201      '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=50,150,50&signaal__gte=0&signaal__lte=100');
    199202    options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
    200203    var newArguments = [name, url, options];
Note: See TracChangeset for help on using the changeset viewer.