]> git.openstreetmap.org Git - rails.git/commitdiff
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 b45e6b7b52c9c76eea44529c4422c2d2568656a4..4a2925c7bd8c48131ed41bf1f0d808a1a83fa60f 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,