localization for printing
This commit is contained in:
parent
c7782b2776
commit
0ba881c390
@ -50,6 +50,8 @@ OSRM.Localization["de"] = {
|
|||||||
"DURATION": "Dauer",
|
"DURATION": "Dauer",
|
||||||
"YOUR_ROUTE_IS_BEING_COMPUTED": "Ihre Route wird berechnet",
|
"YOUR_ROUTE_IS_BEING_COMPUTED": "Ihre Route wird berechnet",
|
||||||
"NO_ROUTE_FOUND": "Keine Route hierher möglich",
|
"NO_ROUTE_FOUND": "Keine Route hierher möglich",
|
||||||
|
// printing
|
||||||
|
"OVERVIEW_MAP": "Übersichtskarte",
|
||||||
// directions
|
// directions
|
||||||
"N": "Norden",
|
"N": "Norden",
|
||||||
"E": "Ost",
|
"E": "Ost",
|
||||||
|
@ -50,6 +50,8 @@ OSRM.Localization["en"] = {
|
|||||||
"DURATION": "Duration",
|
"DURATION": "Duration",
|
||||||
"YOUR_ROUTE_IS_BEING_COMPUTED": "Your route is being computed",
|
"YOUR_ROUTE_IS_BEING_COMPUTED": "Your route is being computed",
|
||||||
"NO_ROUTE_FOUND": "No route possible",
|
"NO_ROUTE_FOUND": "No route possible",
|
||||||
|
//printing
|
||||||
|
"OVERVIEW_MAP": "Overview Map",
|
||||||
// directions
|
// directions
|
||||||
"N": "north",
|
"N": "north",
|
||||||
"E": "east",
|
"E": "east",
|
||||||
|
@ -40,6 +40,9 @@ init: function() {
|
|||||||
show: function(response) {
|
show: function(response) {
|
||||||
// add events
|
// add events
|
||||||
OSRM.printwindow.document.getElementById('gui-printer').onclick = OSRM.printwindow.printWindow;
|
OSRM.printwindow.document.getElementById('gui-printer').onclick = OSRM.printwindow.printWindow;
|
||||||
|
|
||||||
|
//
|
||||||
|
OSRM.printwindow.document.getElementById('overview-map-label').innerHTML = OSRM.loc( "OVERVIEW_MAP" );
|
||||||
|
|
||||||
// create header
|
// create header
|
||||||
header =
|
header =
|
||||||
|
@ -33,7 +33,7 @@ body
|
|||||||
|
|
||||||
|
|
||||||
/* route map box */
|
/* route map box */
|
||||||
#map
|
#overview-map
|
||||||
{
|
{
|
||||||
width:500px;
|
width:500px;
|
||||||
height:500px;
|
height:500px;
|
||||||
|
@ -57,8 +57,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
<!--map-->
|
<!--map-->
|
||||||
<div class="quad"></div>
|
<div class="quad"></div>
|
||||||
<div class="header-title">Übersichtskarte</div>
|
<div id="overview-map-label" class="header-title">Übersichtskarte</div>
|
||||||
<div id="map"></div>
|
<div id="overview-map"></div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -27,7 +27,7 @@ OSRM.G = OSRM.GLOBALS;
|
|||||||
function initialize(tile_server) {
|
function initialize(tile_server) {
|
||||||
// setup map
|
// setup map
|
||||||
var tile_layer = new L.TileLayer(tile_server.url, tile_server.options);
|
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),
|
center: new L.LatLng(51.505, -0.09),
|
||||||
zoom: 13,
|
zoom: 13,
|
||||||
zoomAnimation: false,
|
zoomAnimation: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user