Documentation for Settings for Openstreetmaps

Phoca Maps - displaying maps in Joomla! CMS
jojo12
Phoca Member
Phoca Member
Posts: 18
Joined: 09 Sep 2011, 18:31

Documentation for Settings for Openstreetmaps

Post 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!]
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9451
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Documentation for Settings for Openstreetmaps

Post 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
jojo12
Phoca Member
Phoca Member
Posts: 18
Joined: 09 Sep 2011, 18:31

Re: Documentation for Settings for Openstreetmaps

Post 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?
jojo12
Phoca Member
Phoca Member
Posts: 18
Joined: 09 Sep 2011, 18:31

Re: Documentation for Settings for Openstreetmaps

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Documentation for Settings for Openstreetmaps

Post by Jan »

Hi, not sure (didn't test the mapbox routing) but the language should be set by user browser settings :idea:

Jan
If you find Phoca extensions useful, please support the project
jojo12
Phoca Member
Phoca Member
Posts: 18
Joined: 09 Sep 2011, 18:31

Re: Documentation for Settings for Openstreetmaps

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Documentation for Settings for Openstreetmaps

Post 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
If you find Phoca extensions useful, please support the project
jojo12
Phoca Member
Phoca Member
Posts: 18
Joined: 09 Sep 2011, 18:31

Re: Documentation for Settings for Openstreetmaps

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Documentation for Settings for Openstreetmaps

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Documentation for Settings for Openstreetmaps

Post 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
If you find Phoca extensions useful, please support the project
Post Reply