Add attribution to cycle and transport layers
authorTom Hughes <tom@compton.nu>
Fri, 25 Nov 2011 11:59:17 +0000 (11:59 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 25 Nov 2011 11:59:17 +0000 (11:59 +0000)
app/assets/javascripts/map.js.erb

index b45e6b7..4a2925c 100644 (file)
@@ -42,7 +42,7 @@ function createMap(divName, options) {
    map.addLayer(osmarender);
 
    var cyclemap = new OpenLayers.Layer.OSM.CycleMap(i18n("javascripts.map.base.cycle_map"), {
-      attribution: "",
+      attribution: "Tiles courtesy of <a href='http://www.opencyclemap.org/' target='_blank'>Andy Allan</a>",
       keyid: "cyclemap",
       displayOutsideMaxExtent: true,
       wrapDateLine: true,
@@ -51,7 +51,7 @@ function createMap(divName, options) {
    map.addLayer(cyclemap);
 
    var transportmap = new OpenLayers.Layer.OSM.TransportMap(i18n("javascripts.map.base.transport_map"), {
-      attribution: "",
+      attribution: "Tiles courtesy of <a href='http://www.opencyclemap.org/' target='_blank'>Andy Allan</a>",
       keyid: "transportmap",
       displayOutsideMaxExtent: true,
       wrapDateLine: true,