localization for printing
This commit is contained in:
parent
c7782b2776
commit
0ba881c390
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -41,6 +41,9 @@ 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 =
|
||||
'<div class="full">' +
|
||||
|
@ -33,7 +33,7 @@ body
|
||||
|
||||
|
||||
/* route map box */
|
||||
#map
|
||||
#overview-map
|
||||
{
|
||||
width:500px;
|
||||
height:500px;
|
||||
|
@ -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>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user