X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcfe326f6515cc7aeb9c02b7536e69863c60cd01..4dcedf666c62e9132de7de50105f567b7963318b:/app/assets/javascripts/embed.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index ceb488f98..e76b6c356 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -1,4 +1,4 @@ -//= require leaflet +//= require leaflet/dist/leaflet-src //= require leaflet.osm //= require i18n //= require i18n/embed @@ -35,6 +35,8 @@ window.onload = function () { new L.OSM.CycleMap(thunderforestOptions).addTo(map); } else if (args.layer === "transportmap") { new L.OSM.TransportMap(thunderforestOptions).addTo(map); + } else if (args.layer === "opnvkarte") { + new L.OSM.OPNVKarte().addTo(map); } else if (args.layer === "hot") { new L.OSM.HOT().addTo(map); }