Ignore:
Timestamp:
May 12, 2011, 1:55:27 PM (14 years ago)
Author:
rick
Message:

Avoid hitting the OSM website all the time, use local caching. Makes development more easy as well.

File:
1 edited

Legend:

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

    r9166 r9189  
    4545    initialize: function(name, options) {
    4646        var url = [
    47             "http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
    48             "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
    49             "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
     47            "/website/osm-proxy/${z}/${x},${y}.png",
    5048        ];
    5149        options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
Note: See TracChangeset for help on using the changeset viewer.