Description: Use local installation of leaflet or openlayers
Author: Uwe Steinmann <steinm@debian.org>
Forwarded: not-needed

--- a/web/www/routino/maploader.js
+++ b/web/www/routino/maploader.js
@@ -47,14 +47,14 @@ function map_load(callbacks)
 
  if(mapprops.library == "leaflet")
    {
-    load_css("../leaflet/leaflet.css");
-    load_js("../leaflet/leaflet.js");
+    load_css("/javascript/leaflet/leaflet.css");
+    load_js("/javascript/leaflet/leaflet.js");
 
     load_js(location.pathname.replace(/\.html.*/,".leaflet.js"));
    }
  else
    {
-    load_js("../openlayers/OpenLayers.js");
+    load_js("/javascript/openlayers/OpenLayers.js");
 
     load_js(location.pathname.replace(/\.html.*/,".openlayers.js"));
    }
--- a/web/www/routino/router.leaflet.js
+++ b/web/www/routino/router.leaflet.js
@@ -753,6 +753,8 @@ function map_init()             // calle
               maxBounds: L.latLngBounds(L.latLng(mapprops.southedge,mapprops.westedge),L.latLng(mapprops.northedge,mapprops.eastedge))
               });
 
+ map.setView({lng: 0, lat: 0}, 2);
+
  // Add map tile layers
 
  var baselayers={};
