From: Tom Hughes Date: Wed, 24 Jan 2024 11:23:29 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/4126' X-Git-Tag: live~313 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c3498b490b7e695f0be0898e3df76961bda4738e?hp=2acf8cb8f22deb2e2960c99c0eeb8c5d64533c9e Merge remote-tracking branch 'upstream/pull/4126' --- diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index e1e0e64fd..d221ae208 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -58,13 +58,6 @@ L.OSM.Map = L.Map.extend({ }).prop("outerHTML"); var tracestrack = I18n.t("javascripts.map.tracestrack_credit", { tracestrack_link: tracestrack_link }); - var memomaps_link = $("", { - href: "https://memomaps.de/", - target: "_blank", - text: I18n.t("javascripts.map.memomaps") - }).prop("outerHTML"); - var memomaps = I18n.t("javascripts.map.opnvkarte_credit", { memomaps_link: memomaps_link }); - var hotosm_link = $("", { href: "https://www.hotosm.org/", target: "_blank", @@ -116,13 +109,6 @@ L.OSM.Map = L.Map.extend({ })); } - this.baseLayers.push(new L.OSM.OPNVKarte({ - attribution: copyright + ". " + memomaps + ". " + terms, - code: "O", - keyid: "opnvkarte", - name: I18n.t("javascripts.map.base.opnvkarte") - })); - this.baseLayers.push(new L.OSM.HOT({ attribution: copyright + ". " + hotosm + ". " + terms, code: "H", diff --git a/config/initializers/secure_headers.rb b/config/initializers/secure_headers.rb index 778b5b827..60f155139 100644 --- a/config/initializers/secure_headers.rb +++ b/config/initializers/secure_headers.rb @@ -7,7 +7,7 @@ csp_policy = { :form_action => %w['self'], :frame_ancestors => %w['self'], :frame_src => %w['self'], - :img_src => %w['self' data: www.gravatar.com *.wp.com tile.openstreetmap.org *.tile.openstreetmap.org *.tile.thunderforest.com tileserver.memomaps.de tile.tracestrack.com *.openstreetmap.fr], + :img_src => %w['self' data: www.gravatar.com *.wp.com tile.openstreetmap.org *.tile.openstreetmap.org *.tile.thunderforest.com tile.tracestrack.com *.openstreetmap.fr], :manifest_src => %w['self'], :media_src => %w['none'], :object_src => %w['self'], diff --git a/config/locales/en.yml b/config/locales/en.yml index dcb877f7b..c7325e64f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3074,7 +3074,6 @@ en: transport_map: Transport Map tracestracktop_topo: Tracestrack Topo hot: Humanitarian - opnvkarte: ÖPNVKarte layers: header: Map Layers notes: Map Notes @@ -3091,8 +3090,6 @@ en: osm_france: OpenStreetMap France thunderforest_credit: "Tiles courtesy of %{thunderforest_link}" andy_allan: Andy Allan - opnvkarte_credit: "Tiles courtesy of %{memomaps_link}" - memomaps: MeMoMaps tracestrack_credit: "Tiles courtesy of %{tracestrack_link}" tracestrack: Tracestrack hotosm_credit: "Tiles style by %{hotosm_link} hosted by %{osm_france_link}"