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

View File

@ -50,6 +50,8 @@ OSRM.Localization["de"] = {
"DURATION": "Dauer",
"YOUR_ROUTE_IS_BEING_COMPUTED": "Ihre Route wird berechnet",
"NO_ROUTE_FOUND": "Keine Route hierher möglich",
// printing
"OVERVIEW_MAP": "Übersichtskarte",
// directions
"N": "Norden",
"E": "Ost",

View File

@ -50,6 +50,8 @@ OSRM.Localization["en"] = {
"DURATION": "Duration",
"YOUR_ROUTE_IS_BEING_COMPUTED": "Your route is being computed",
"NO_ROUTE_FOUND": "No route possible",
//printing
"OVERVIEW_MAP": "Overview Map",
// directions
"N": "north",
"E": "east",

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 =

View File

@ -33,7 +33,7 @@ body
/* route map box */
#map
#overview-map
{
width:500px;
height:500px;

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>

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,