Page 1 of 1

Documentation for Settings for Openstreetmaps

Posted: 27 Feb 2019, 10:22
by jojo12
I am trying your Phoca Maps. It seems very interesting and helpful. I want it after all for openstreetMaps. (For to have an alternative to google!) But I need more informations about the settings for openstreetMaps and Mapbox etc. This part seems tobe very new.
What are the possibilities to set?
e.g.

Router Profile
Router Service URL

[In addition: Can I help to make better the german documentation. It seems to be google translation and is often really misunderstanding!]

Re: Documentation for Settings for Openstreetmaps

Posted: 27 Feb 2019, 10:47
by Benno
Hi,
sprichst Du von dieser Dokumentation? Falls ja, das ist keine Google Übersetzung. Falls Du dort Mißverständlichkeiten gefunden hast, infomiere mich bitte per PM. Ändere ich dann umgehend. :)

Freundliche Grüße,
Benno

Re: Documentation for Settings for Openstreetmaps

Posted: 27 Feb 2019, 14:32
by jojo12
Wo ich schwimme sind die Routing Einstellungen
Routerprofil Was für Möglichkeiten habe ich hier? Ich kann einsetzen, was ich will, es zeigt mir keine Karte. Leergelassen erscheint eine Karte mit Routing.
Router Service URL Was setze ich hier ein? Bis jetzt habe ich nur herausgefunden, bei Einsetzen von "streets", wird mir eine Karte mit Routing angezeigt.
Wo finde ich dafür Antworten?

Re: Documentation for Settings for Openstreetmaps

Posted: 27 Feb 2019, 15:48
by jojo12
How can I change the language of the Routing (mapbox). It seems, there are german expressions too in the "leaflet-routing-machine". But how can I change from english to an other language?

Re: Documentation for Settings for Openstreetmaps

Posted: 28 Feb 2019, 13:41
by Jan
Hi, not sure (didn't test the mapbox routing) but the language should be set by user browser settings :idea:

Jan

Re: Documentation for Settings for Openstreetmaps

Posted: 28 Feb 2019, 16:12
by jojo12
Hi, this seens so for google, but nit for osm mapbox.
Thanks for all your extensions. I like some of them! If I can help something, you can ask. I don't have money

Re: Documentation for Settings for Openstreetmaps

Posted: 28 Feb 2019, 16:18
by Jan
Hi, try to open this file:

components\com_phocamaps\views\map\tmpl\default_osm.php

on line cca 177 edit

FROM:

Code: Select all

$map->renderRouting(0,0,$lat,$lng, $mId, $markerIconOptions);
TO:

Code: Select all

$map->renderRouting(0,0,$lat,$lng, $mId, $markerIconOptions, 'de');
or any other language to test ('en', 'en-GB', 'de-DE') and let me know if this work. If yes, I will add new parameter for this in the next version.

Jan

Re: Documentation for Settings for Openstreetmaps

Posted: 28 Feb 2019, 17:32
by jojo12
Hi Jan (Hero :-))
Excellent: I tried with german, french and italian: works in these languages. english seems to be the default.

My other question is: what are the options in Router Profile: I tried driving, mapbox/driving, 'mapbox/driving', when something of this is written, I have no map.
And what are the options in Router URL: I only see a map, when there is inside: streets when it's empty I don't see a map.
How can I switch e.g. to cycling or walking?
greetings!
Jojo

Re: Documentation for Settings for Openstreetmaps

Posted: 02 Mar 2019, 15:57
by Jan
Hi, see:
https://wiki.openstreetmap.org/wiki/Routing_profiles

but for Mapbox there will be specific profiles. I don't have any API Key for Mapbox so hard to give any clude advice but you should try to open javascript console ( https://www.phoca.cz/documents/16-jooml ... -conflicts ) to see if there is no error message from Mapbox when rendering the route :idea:

Jan

Re: Documentation for Settings for Openstreetmaps

Posted: 03 Mar 2019, 23:08
by Jan
Hi, the language should work in version 3.0.6 (it can be set in maps edit)

https://www.phoca.cz/news/1019-phoca-ma ... 6-released

Jan