From: John Firebaugh Date: Tue, 16 Jul 2013 21:30:27 +0000 (-0700) Subject: Add copyright in attribution control X-Git-Tag: live~4800 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d31fc7c2f5c0f43b9e65479e3f1690bdd0c2fb4a Add copyright in attribution control --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index bd366b609..5190277c9 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -22,27 +22,29 @@ $(document).ready(function () { map.hash = L.hash(map); + var copyright = I18n.t('javascripts.map.copyright', {copyright_url: '/copyright'}); + var layers = [ new L.OSM.Mapnik({ - attribution: '', + attribution: copyright, code: "M", keyid: "mapnik", name: I18n.t("javascripts.map.base.standard") }), new L.OSM.CycleMap({ - attribution: "Tiles courtesy of Andy Allan", + attribution: copyright + ". Tiles courtesy of Andy Allan", code: "C", keyid: "cyclemap", name: I18n.t("javascripts.map.base.cycle_map") }), new L.OSM.TransportMap({ - attribution: "Tiles courtesy of Andy Allan", + attribution: copyright + ". Tiles courtesy of Andy Allan", code: "T", keyid: "transportmap", name: I18n.t("javascripts.map.base.transport_map") }), new L.OSM.MapQuestOpen({ - attribution: "Tiles courtesy of MapQuest ", + attribution: copyright + ". Tiles courtesy of MapQuest ", code: "Q", keyid: "mapquest", name: I18n.t("javascripts.map.base.mapquest") diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb index 44edfc6d1..548dc35fb 100644 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@ -44,7 +44,6 @@
  • @@ -59,6 +58,9 @@
  • <%= t'layouts.data' %>

    + diff --git a/config/locales/en.yml b/config/locales/en.yml index 62fcb8433..697c9a747 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2085,6 +2085,7 @@ en: notes: Map Notes data: Map Data overlays: Enable overlays for troubleshooting the map + copyright: "© OpenStreetMap contributors" site: edit_tooltip: Edit the map edit_disabled_tooltip: Zoom in to edit the map