Changeset 1113 for sites/oxford.openguides.org
- Timestamp:
- 07/05/07 22:33:52 (17 months ago)
- Location:
- sites/oxford.openguides.org/templates
- Files:
-
- 2 modified
-
map_index.tt (modified) (2 diffs)
-
node.tt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/oxford.openguides.org/templates/map_index.tt
r1112 r1113 29 29 30 30 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, "©2007 <a href='http://www.openstreetmap.org>OpenStreetMap</a> contributors"); 32 32 copycol.addCopyright(copy); 33 var tileMapnik = new GTileLayer(copycol,1,1 7);34 tileMapnik.myBaseURL = "http:// mapnik.uberfoo.com/";33 var tileMapnik = new GTileLayer(copycol,1,18); 34 tileMapnik.myBaseURL = "http://tile.openstreetmap.org/"; 35 35 tileMapnik.getTileUrl=MapnikGetTileUrl; 36 36 tileMapnik.isPng = function () { return true;} … … 38 38 39 39 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); 41 41 map.addMapType(mapnikMap); 42 42 -
sites/oxford.openguides.org/templates/node.tt
r1112 r1113 18 18 new GKeyboardHandler(map); 19 19 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>"); 21 21 copycol.addCopyright(copy); 22 var tileMapnik = new GTileLayer(copycol,1,1 7);23 tileMapnik.myBaseURL = "http:// mapnik.uberfoo.com/";22 var tileMapnik = new GTileLayer(copycol,1,18); 23 tileMapnik.myBaseURL = "http://tile.openstreetmap.org/"; 24 24 tileMapnik.getTileUrl=MapnikGetTileUrl; 25 25 tileMapnik.isPng = function () { return true;} … … 27 27 28 28 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); 30 30 map.addMapType(mapnikMap); 31 31
