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
@@ -67,8 +67,8 @@ 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"));
    }
@@ -81,7 +81,7 @@ function map_load(callbacks)
    }
  else if(mapprops.library == "openlayers2")
    {
-    load_js("../openlayers2/OpenLayers.js");
+    load_js("/javascript/openlayers/OpenLayers.js");
 
     load_js(location.pathname.replace(/\.html.*/,".openlayers2.js"));
    }
--- a/web/www/routino/router.leaflet.js
+++ b/web/www/routino/router.leaflet.js
@@ -852,6 +852,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={};
