[routino] 05/05: set center of map
Uwe Steinmann
steinm-guest at moszumanska.debian.org
Tue Apr 22 11:35:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
steinm-guest pushed a commit to branch master
in repository routino.
commit cc44ea0620a40884b86b8d8eb88653d3221aa911
Author: Uwe Steinmann <steinm at debian.org>
Date: Tue Apr 22 13:34:40 2014 +0200
set center of map
older leaflet versions like the one in debian squeeze seem to need it
---
debian/patches/maploader | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/debian/patches/maploader b/debian/patches/maploader
index 306a591..2f2d226 100644
--- a/debian/patches/maploader
+++ b/debian/patches/maploader
@@ -21,3 +21,14 @@ Author: Uwe Steinmann <steinm at debian.org>
load_js(location.pathname.replace(/\.html.*/,".openlayers.js"));
}
+--- a/web/www/routino/router.leaflet.js
++++ b/web/www/routino/router.leaflet.js
+@@ -744,6 +744,8 @@
+ 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={};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/routino.git
More information about the Pkg-grass-devel
mailing list