Changeset 9579 for src/django_gheat/wlheatmap
- Timestamp:
- Aug 26, 2011, 8:54:24 PM (13 years ago)
- Location:
- src/django_gheat/wlheatmap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/wlheatmap/filters.py
r9577 r9579 20 20 # Get list if accespoints found in the specific 'Meting', and make this is list. 21 21 wirelessleiden_ssid = Meting.objects.filter(meetrondje=mr, 22 accespoint__ ssid__contains='WirelessLeiden').\22 accespoint__organization='WirelessLeiden').\ 23 23 values_list('accespoint__ssid',flat=True).\ 24 24 order_by('accespoint__ssid').distinct() -
src/django_gheat/wlheatmap/nodelist.py
r9244 r9579 40 40 filter = {} 41 41 filter.update({ 42 ' ssid__contains' : 'WirelessLeiden',42 'organization' : 'WirelessLeiden', 43 43 'meting__latitude__lt' : maxlat, 44 44 'meting__longitude__lt' : maxlon, -
src/django_gheat/wlheatmap/templates/js/LayerBase.js
r9549 r9579 168 168 OpenLayers.Layer.OSM.Overlay2 = OpenLayers.Class(OpenLayers.Layer.OSM, { 169 169 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'); 171 172 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); 172 173 var newArguments = [name, url, options]; … … 182 183 OpenLayers.Layer.OSM.Overlay3 = OpenLayers.Class(OpenLayers.Layer.OSM, { 183 184 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'); 185 187 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); 186 188 var newArguments = [name, url, options]; … … 196 198 OpenLayers.Layer.OSM.Overlay4 = OpenLayers.Class(OpenLayers.Layer.OSM, { 197 199 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'); 199 202 options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options); 200 203 var newArguments = [name, url, options];
Note:
See TracChangeset
for help on using the changeset viewer.