localization for printing

This commit is contained in:
DennisSchiefer
2012-04-15 23:12:17 +02:00
parent c7782b2776
commit 0ba881c390
6 changed files with 11 additions and 4 deletions
+3
View File
@@ -40,6 +40,9 @@ init: function() {
show: function(response) {
// add events
OSRM.printwindow.document.getElementById('gui-printer').onclick = OSRM.printwindow.printWindow;
//
OSRM.printwindow.document.getElementById('overview-map-label').innerHTML = OSRM.loc( "OVERVIEW_MAP" );
// create header
header =
+1 -1
View File
@@ -33,7 +33,7 @@ body
/* route map box */
#map
#overview-map
{
width:500px;
height:500px;
+2 -2
View File
@@ -57,8 +57,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
<!--map-->
<div class="quad"></div>
<div class="header-title">Übersichtskarte</div>
<div id="map"></div>
<div id="overview-map-label" class="header-title">Übersichtskarte</div>
<div id="overview-map"></div>
</body>
</html>
+1 -1
View File
@@ -27,7 +27,7 @@ OSRM.G = OSRM.GLOBALS;
function initialize(tile_server) {
// setup map
var tile_layer = new L.TileLayer(tile_server.url, tile_server.options);
OSRM.G.map = new OSRM.MapView("map", {
OSRM.G.map = new OSRM.MapView("overview-map", {
center: new L.LatLng(51.505, -0.09),
zoom: 13,
zoomAnimation: false,