brouter-web/js
Henrik Fehlauer 96016b7fd0
Document new export formats added in BRouter 1.7.0 and fix export error
BRouter 1.7.0 implemented support for three new export formats:
"Cruiser", "BRouter internal" and "Locus(-new)".

"Cruiser" (`turnInstructionMode=8`) and "BRouter internal"
(`turnInstructionMode=9`) are not yet exposed in BRouter-Web's UI
through profiles, so we do not need to implement them at the moment.
Here we only document them by making them explicit unimplemented `cases`
in the code.

In addition, BRouter changed "locus-style" with `turnInstructionMode=2`
to emit a different format for newer releases of Locus, while the old
format is now referred to as "locus-old-style" from profiles with
`turnInstructionMode=7`. Since BRouter-Web does not know yet about the
the new id, exports will fail with "unhandled turnInstructionMode"
errors.

To fix the latter issue, we now map `turnInstructionMode=7` to the newly
renamed `LocusOldVoiceHints()`. Note that `turnInstructionMode=2` is
also currently using `LocusOldVoiceHints()`, i.e. the new format still
needs an implementation.

Test Plan:
  - `yarn test`
  - Check choosing "locus-old-style" now exports without an error.
2023-07-07 16:44:21 +00:00
..
control Wrap long URLs in custom layers overlay 2023-06-02 08:06:55 +02:00
format Document new export formats added in BRouter 1.7.0 and fix export error 2023-07-07 16:44:21 +00:00
plugin Don't filter points of GeoJSON layer (#727) 2023-05-17 12:27:23 +02:00
router Emit console warning when using an unsupported BRouter version 2023-07-06 09:46:47 +00:00
util Don't filter points of GeoJSON layer (#727) 2023-05-17 12:27:23 +02:00
Browser.js Work around iOS 3rd party browser download (#418) 2022-05-28 14:27:32 +02:00
index.js Add "Help" dialog which shows available keyboard shortcuts 2023-06-11 09:21:13 +02:00
LayersConfig.js Implement simplestyle for GeoJSON 2023-04-20 22:45:13 +02:00
Map.js Merge pull request #497 from nrenner/68-sl-routing 2022-05-12 16:26:00 +02:00
Util.js Determine country rules by enclosing boundary 2021-01-23 12:43:13 +01:00
WhatsNew.js Avoid what's new content blinking 2021-03-26 16:19:33 +01:00