From 16f8acd243dc237d64e6e2f10251744eb0fb4145 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 15 Jun 2016 20:38:52 +0100 Subject: [PATCH] Remove more traces of MapQuest Open layer --- app/assets/javascripts/embed.js.erb | 4 +--- config/locales/en.yml | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index a8fe29fce..24e196ca1 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -22,14 +22,12 @@ window.onload = function () { map.attributionControl.setPrefix(''); map.removeControl(map.attributionControl); - if (!args.layer || args.layer === "mapnik" || args.layer === "osmarender") { + if (!args.layer || args.layer === "mapnik" || args.layer === "osmarender" || args.layer === "mapquest") { new L.OSM.Mapnik().addTo(map); } else if (args.layer === "cyclemap" || args.layer === "cycle map") { new L.OSM.CycleMap().addTo(map); } else if (args.layer === "transportmap") { new L.OSM.TransportMap().addTo(map); - } else if (args.layer === "mapquest") { - new L.OSM.MapQuestOpen().addTo(map); } else if (args.layer === "hot") { new L.OSM.HOT().addTo(map); } diff --git a/config/locales/en.yml b/config/locales/en.yml index e463a3f93..3a42e2bb0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2190,7 +2190,6 @@ en: standard: Standard cycle_map: Cycle Map transport_map: Transport Map - mapquest: MapQuest Open hot: Humanitarian layers: header: Map Layers -- 2.39.5