Ignore:
Timestamp:
Jul 7, 2011, 7:23:54 AM (13 years ago)
Author:
rick
Message:

Starting to make production ready:

  • Remove all static / references.
  • Added multihost osm-proxy capacities.
  • Got the osm-proxy code to a more usefull location.
  • Added caching.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/OpenStreetMap.js

    r9302 r9358  
    4545    initialize: function(name, options) {
    4646        var url = [
    47             "/website/osm-proxy/${z}/${x},${y}.png",
     47            "http://a.osmproxy.wirelessleiden.nl/heatmap/osm-proxy/${z}/${x},${y}.png",
     48            "http://b.osmproxy.wirelessleiden.nl/heatmap/osm-proxy/${z}/${x},${y}.png",
     49            "http://c.osmproxy.wirelessleiden.nl/heatmap/osm-proxy/${z}/${x},${y}.png",
    4850        ];
    4951        options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
     
    161163    initialize: function(name, options) {
    162164        var url = [
    163             "/website/tile/${z}/${x},${y}.png?colour=90,90,90"
     165            "tile/${z}/${x},${y}.png?colour=90,90,90"
    164166        ];
    165167        options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
     
    177179    initialize: function(name, options) {
    178180        var url = [
    179             "/website/tile/${z}/${x},${y}.png?colour=255,0,0&accespoint__ssid__icontains=WirelessLeiden"
     181            "tile/${z}/${x},${y}.png?colour=255,0,0&accespoint__ssid__icontains=WirelessLeiden"
    180182        ];
    181183        options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
     
    193195  initialize: function(name, options) {
    194196    var url = [
    195       "/website/tile/${z}/${x},${y}.png?colour=250,250,0&signaal__gte=0&signaal__lte=100"
     197      "tile/${z}/${x},${y}.png?colour=250,250,0&signaal__gte=0&signaal__lte=100"
    196198    ];
    197199    options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
Note: See TracChangeset for help on using the changeset viewer.