Ignore:
Timestamp:
Jul 7, 2011, 7:23:54 AM (14 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/heatmap_extensions.js

    r9347 r9358  
    44 */
    55function getNodeList(zoomlevel, mousepos){
    6   $.getJSON("/website/nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon,
     6  $.getJSON("nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon,
    77    function(json){
    88      content = 'Wireless Leiden nodes on mouseposition:<br /><b>';
     
    6868    stop: function(event, sig){
    6969      signallayer = map.getLayersByName('signallayer');
    70       signallayer[0].setUrl("/website/tile/${z}/${x},${y}.png?colour=250,250,0&signaal__gte=" + sig.values[0] + "&signaal__lte=" + sig.values[1]);
     70      signallayer[0].setUrl("tile/${z}/${x},${y}.png?colour=250,250,0&signaal__gte=" + sig.values[0] + "&signaal__lte=" + sig.values[1]);
    7171      signallayer[0].redraw();
    7272    },
     
    169169   * http://stackoverflow.com/questions/170986/what-is-the-best-way-to-add-options-to-a-select-from-an-array-with-jquery
    170170   */
    171   $.getJSON("/website/filters/",
     171  $.getJSON("filters/",
    172172    function(json) {
    173173      $.each(json, function(i,json){
     
    203203          initialize: function(name, options) {
    204204            var url = [
    205               "/website/tile/${z}/${x},${y}.png?&colour=" + colour + "&meetrondje__gebruiker__naam=" + user
     205              "tile/${z}/${x},${y}.png?&colour=" + colour + "&meetrondje__gebruiker__naam=" + user
    206206            ];
    207207            options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
     
    240240          initialize: function(name, options) {
    241241            var url = [
    242               "/website/tile/${z}/${x},${y}.png?&colour=" + colour + "&accespoint__ssid=" + node
     242              "tile/${z}/${x},${y}.png?&colour=" + colour + "&accespoint__ssid=" + node
    243243            ];
    244244            options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
     
    326326      initialize: function(name, options) {
    327327        var url = [
    328           "/website/tile/${z}/${x},${y}.png?&colour=" + colour + user + dataset + wlnode + start_date + end_date
     328          "tile/${z}/${x},${y}.png?&colour=" + colour + user + dataset + wlnode + start_date + end_date
    329329        ];
    330330        options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
Note: See TracChangeset for help on using the changeset viewer.