diff --git a/WebContent/gui/OSRM.MainGUI.js b/WebContent/gui/OSRM.MainGUI.js index 1e8226fe3..8a740fe65 100644 --- a/WebContent/gui/OSRM.MainGUI.js +++ b/WebContent/gui/OSRM.MainGUI.js @@ -54,7 +54,7 @@ setLabels: function() { document.getElementById("open-josm").innerHTML = OSRM.loc("OPEN_JOSM"); document.getElementById("open-osmbugs").innerHTML = OSRM.loc("OPEN_OSMBUGS"); document.getElementById("gui-reset").innerHTML = OSRM.loc("GUI_RESET"); - document.getElementById("gui-zoom").innerHTML = OSRM.loc("GUI_ZOOM"); + document.getElementById("gui-zoom").innerHTML = OSRM.loc("GUI_ZOOM_ON_ROUTE"); document.getElementById("gui-reverse").innerHTML = OSRM.loc("GUI_REVERSE"); document.getElementById("gui-option-highlight-nonames-label").innerHTML = OSRM.loc("GUI_HIGHLIGHT_UNNAMED_ROADS"); document.getElementById("gui-option-show-previous-routes-label").innerHTML = OSRM.loc("GUI_SHOW_PREVIOUS_ROUTES"); diff --git a/WebContent/gui/OSRM.RoutingGUI.js b/WebContent/gui/OSRM.RoutingGUI.js index 0e4f6dd2f..2616233d4 100644 --- a/WebContent/gui/OSRM.RoutingGUI.js +++ b/WebContent/gui/OSRM.RoutingGUI.js @@ -166,6 +166,12 @@ zoomOnRoute: function() { OSRM.G.map.fitBoundsUI(bounds); }, +//click: button "zoom on user" +zoomOnUser: function() { + if (navigator.geolocation) + navigator.geolocation.getCurrentPosition(OSRM.Map.geolocationResponse); +}, + //click: toggle highlighting unnamed streets hightlightNonames: function() { OSRM.Routing.getRoute_Redraw({keepAlternative:true}); diff --git a/WebContent/localization/OSRM.Locale.de.js b/WebContent/localization/OSRM.Locale.de.js index 2a30fe3cd..9956391bd 100644 --- a/WebContent/localization/OSRM.Locale.de.js +++ b/WebContent/localization/OSRM.Locale.de.js @@ -27,7 +27,8 @@ OSRM.Localization["de"] = { "GUI_START": "Start", "GUI_END": "Ziel", "GUI_RESET": "Reset", -"GUI_ZOOM": "Zoom auf Route", +"GUI_ZOOM_ON_ROUTE": "Zoom auf Route", +"GUI_ZOOM_ON_USER": "Zoom auf Anwender", "GUI_SEARCH": "Zeigen", "GUI_REVERSE": "Umdrehen", "GUI_START_TOOLTIP": "Startposition eingeben", diff --git a/WebContent/localization/OSRM.Locale.dk.js b/WebContent/localization/OSRM.Locale.dk.js index 845d57bbf..7046e567e 100644 --- a/WebContent/localization/OSRM.Locale.dk.js +++ b/WebContent/localization/OSRM.Locale.dk.js @@ -27,7 +27,8 @@ OSRM.Localization["dk"] = { "GUI_START": "Start", "GUI_END": "Destination", "GUI_RESET": "Nulstil", -"GUI_ZOOM": "Zoom på Rute", +"GUI_ZOOM_ON_ROUTE": "Zoom på Rute", +"GUI_ZOOM_ON_USER": "Zoom på Bruger", "GUI_SEARCH": "Vis", "GUI_REVERSE": "Omvendt", "GUI_START_TOOLTIP": "Indtast start", diff --git a/WebContent/localization/OSRM.Locale.en.js b/WebContent/localization/OSRM.Locale.en.js index 9c474b1cc..838a80a03 100644 --- a/WebContent/localization/OSRM.Locale.en.js +++ b/WebContent/localization/OSRM.Locale.en.js @@ -27,7 +27,8 @@ OSRM.Localization["en"] = { "GUI_START": "Start", "GUI_END": "End", "GUI_RESET": "  Reset  ", -"GUI_ZOOM": "Zoom onto Route", +"GUI_ZOOM_ON_ROUTE": "Zoom onto Route", +"GUI_ZOOM_ON_USER": "Zoom onto User", "GUI_SEARCH": "  Show  ", "GUI_REVERSE": "Reverse", "GUI_START_TOOLTIP": "Enter start", diff --git a/WebContent/localization/OSRM.Locale.es.js b/WebContent/localization/OSRM.Locale.es.js index c34b851ee..c2d2e89b0 100644 --- a/WebContent/localization/OSRM.Locale.es.js +++ b/WebContent/localization/OSRM.Locale.es.js @@ -27,7 +27,8 @@ OSRM.Localization["es"] = { "GUI_START": "Inicio", "GUI_END": "Destino", "GUI_RESET": "Borrar", -"GUI_ZOOM": "Zoom en la Ruta", +"GUI_ZOOM_ON_ROUTE": "Zoom en la Ruta", +"GUI_ZOOM_ON_USER": "Zoom en Usuario", "GUI_SEARCH": "Mostrar", "GUI_REVERSE": "Invertir", "GUI_START_TOOLTIP": "Escriba la dirección de origen", diff --git a/WebContent/localization/OSRM.Locale.fi.js b/WebContent/localization/OSRM.Locale.fi.js index 67268c660..43a211b77 100644 --- a/WebContent/localization/OSRM.Locale.fi.js +++ b/WebContent/localization/OSRM.Locale.fi.js @@ -27,7 +27,8 @@ OSRM.Localization["fi"] = { "GUI_START": "Lähtöpaikka", "GUI_END": "Määränpää", "GUI_RESET": "Tyhjennä", -"GUI_ZOOM": "Zoom reitillä", +"GUI_ZOOM_ON_ROUTE": "Zoom reitillä", +"GUI_ZOOM_ON_USER": "Zoom käyttäjä", "GUI_SEARCH": "Etsi", "GUI_REVERSE": "Käänteinen reitti", "GUI_START_TOOLTIP": "Syötä lähtöpaikka", diff --git a/WebContent/localization/OSRM.Locale.fr.js b/WebContent/localization/OSRM.Locale.fr.js index 571c2d144..db3aefe90 100644 --- a/WebContent/localization/OSRM.Locale.fr.js +++ b/WebContent/localization/OSRM.Locale.fr.js @@ -27,7 +27,8 @@ OSRM.Localization["fr"] = { "GUI_START": "Départ", "GUI_END": "Arrivée", "GUI_RESET": "Réinitialiser", -"GUI_ZOOM": "Zoom sur la Route", +"GUI_ZOOM_ON_ROUTE": "Zoom sur la Route", +"GUI_ZOOM_ON_USER": "Zoom sur le Utilisateur", "GUI_SEARCH": "Montrer", "GUI_REVERSE": "Inverser", "GUI_START_TOOLTIP": "Entrez le lieu de départ", diff --git a/WebContent/localization/OSRM.Locale.it.js b/WebContent/localization/OSRM.Locale.it.js index aad98464e..455ae7ad7 100644 --- a/WebContent/localization/OSRM.Locale.it.js +++ b/WebContent/localization/OSRM.Locale.it.js @@ -27,7 +27,8 @@ OSRM.Localization["it"] = { "GUI_START": "Partenza", "GUI_END": "Destinazione", "GUI_RESET": "Reset", -"GUI_ZOOM": "Zoom su Percorso", +"GUI_ZOOM_ON_ROUTE": "Zoom su Percorso", +"GUI_ZOOM_ON_USER": "Zoom su Utente", "GUI_SEARCH": "Mostra", "GUI_REVERSE": "Inverti", "GUI_START_TOOLTIP": "Inserire la Partenza", diff --git a/WebContent/localization/OSRM.Locale.lv.js b/WebContent/localization/OSRM.Locale.lv.js index 9b3aa21c4..811de83dd 100644 --- a/WebContent/localization/OSRM.Locale.lv.js +++ b/WebContent/localization/OSRM.Locale.lv.js @@ -27,7 +27,8 @@ OSRM.Localization["lv"] = { "GUI_START": "Sākums", "GUI_END": "Galamērķis", "GUI_RESET": "  Reset  ", -"GUI_ZOOM": "Padidinti ant Route", +"GUI_ZOOM_ON_ROUTE": "Padidinti ant Route", +"GUI_ZOOM_ON_USER": "Padidinti ant Lietotājs", "GUI_SEARCH": "  Rādīt  ", "GUI_REVERSE": "Pretējā virzienā", "GUI_START_TOOLTIP": "Izvēlieties sākumu", diff --git a/WebContent/localization/OSRM.Locale.pl.js b/WebContent/localization/OSRM.Locale.pl.js index a1c74d452..b0c5f9d40 100644 --- a/WebContent/localization/OSRM.Locale.pl.js +++ b/WebContent/localization/OSRM.Locale.pl.js @@ -27,7 +27,8 @@ OSRM.Localization["pl"] = { "GUI_START": "Początek", "GUI_END": "Koniec", "GUI_RESET": "Reset", -"GUI_ZOOM": "Zoom na Trasy", +"GUI_ZOOM_ON_ROUTE": "Zoom na Trasy", +"GUI_ZOOM_ON_USER": "Zoom na Użytkownik", "GUI_SEARCH": "Pokaż", "GUI_REVERSE": "Odwróć", "GUI_START_TOOLTIP": "Wprowadź początek", diff --git a/WebContent/localization/OSRM.Locale.ru.js b/WebContent/localization/OSRM.Locale.ru.js index 77d427074..352933f34 100644 --- a/WebContent/localization/OSRM.Locale.ru.js +++ b/WebContent/localization/OSRM.Locale.ru.js @@ -27,7 +27,8 @@ OSRM.Localization["ru"] = { "GUI_START": "Начало", "GUI_END": "Конец", "GUI_RESET": "  Сброс  ", -"GUI_ZOOM": "зум на маршрут", +"GUI_ZOOM_ON_ROUTE": "зум на маршрут", +"GUI_ZOOM_ON_USER": "зум на Пользователь", "GUI_SEARCH": "  Показать  ", "GUI_REVERSE": "Обратно", "GUI_START_TOOLTIP": "Укажите начальную точку",