Changeset 1113


Ignore:
Timestamp:
Jul 5, 2007, 10:33:52 PM (14 years ago)
Author:
Dominic Hargreaves
Message:

Use tile.openstreetmap.org instead

Location:
sites/oxford.openguides.org/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/oxford.openguides.org/templates/map_index.tt

    r1112 r1113  
    2929     
    3030      var copycol = new GCopyrightCollection("");
    31       var copy = new GCopyright(1, new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180)), 0, "OpenStreetMap");
     31      var copy = new GCopyright(1, new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180)), 0, "&copy;2007 <a href='http://www.openstreetmap.org>OpenStreetMap</a> contributors");
    3232      copycol.addCopyright(copy);
    33       var tileMapnik = new GTileLayer(copycol,1,17);
    34       tileMapnik.myBaseURL = "http://mapnik.uberfoo.com/";
     33      var tileMapnik = new GTileLayer(copycol,1,18);
     34      tileMapnik.myBaseURL = "http://tile.openstreetmap.org/";
    3535      tileMapnik.getTileUrl=MapnikGetTileUrl;
    3636      tileMapnik.isPng = function () { return true;}
     
    3838
    3939      var layer0 = [tileMapnik];
    40       var mapnikMap = new GMapType(layer0, G_SATELLITE_MAP.getProjection(), "Mapnik", G_SATELLITE_MAP);
     40      var mapnikMap = new GMapType(layer0, G_SATELLITE_MAP.getProjection(), "OSM", G_SATELLITE_MAP);
    4141      map.addMapType(mapnikMap);
    4242     
  • sites/oxford.openguides.org/templates/node.tt

    r1112 r1113  
    1818    new GKeyboardHandler(map);
    1919    var copycol = new GCopyrightCollection("");
    20     var copy = new GCopyright(1, new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180)), 0, "OpenStreetMap");
     20    var copy = new GCopyright(1, new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180)), 0, "<a href='http://www.openstreetmap.org>OpenStreetMap</a>");
    2121    copycol.addCopyright(copy);
    22     var tileMapnik = new GTileLayer(copycol,1,17);
    23     tileMapnik.myBaseURL = "http://mapnik.uberfoo.com/";
     22    var tileMapnik = new GTileLayer(copycol,1,18);
     23    tileMapnik.myBaseURL = "http://tile.openstreetmap.org/";
    2424    tileMapnik.getTileUrl=MapnikGetTileUrl;
    2525    tileMapnik.isPng = function () { return true;}
     
    2727
    2828    var layer0 = [tileMapnik];
    29     var mapnikMap = new GMapType(layer0, G_SATELLITE_MAP.getProjection(), "Mapnik", G_SATELLITE_MAP);
     29    var mapnikMap = new GMapType(layer0, G_SATELLITE_MAP.getProjection(), "OSM", G_SATELLITE_MAP);
    3030    map.addMapType(mapnikMap);
    3131   
Note: See TracChangeset for help on using the changeset viewer.