]> git.openstreetmap.org Git - rails.git/commitdiff
Remove OPNVKarte as a featured layer
authorPaul Norman <penorman@mac.com>
Sun, 30 Jul 2023 22:37:06 +0000 (15:37 -0700)
committerTom Hughes <tom@compton.nu>
Tue, 16 Jan 2024 08:18:41 +0000 (08:18 +0000)
app/assets/javascripts/leaflet.map.js
config/initializers/secure_headers.rb
config/locales/en.yml

index e1e0e64fde0b58433a7cd204d570e50410c3ba27..d221ae208eba4880a707d8c82d9c9763961b9bd7 100644 (file)
@@ -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 = $("<a>", {
-      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 = $("<a>", {
       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",
index 778b5b827aff877439565a0a322ddc1809f28678..60f155139f72f2c5310843fafeed24d707b1fe8f 100644 (file)
@@ -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'],
index 653e363a67bcfb6d39927c5df0c99457a4e09192..0dc8c7be1adb9aac32ebe2a90b0eecafbaf9b975 100644 (file)
@@ -3080,7 +3080,6 @@ en:
         transport_map: Transport Map
         tracestracktop_topo: Tracestrack Topo
         hot: Humanitarian
-        opnvkarte: Ã–PNVKarte
       layers:
         header: Map Layers
         notes: Map Notes
@@ -3097,8 +3096,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}"