brouter-web/js
Henrik Fehlauer 8809fa94cf
Prevent Gpsies-style export from throwing for undefined symbols
While abrensch/brouter@82fecf9 fixed the export already by avoiding the
problematic `OFFR` voice hint, we would still throw in case we
encountered an `undefined` symbol entry:

> Uncaught TypeError: Cannot read properties of undefined (reading
> 'toLowerCase')

This can be prevented by not calling `toLowerCase()` on `undefined`
objects.

Fixes #751

Test Plan:
  - Change `VoiceHints.commands` to contain `undefined` entries for a
  particular voice hint.
  - Create a route with that voice hint.
  - Test that exporting for each `turnInstructionMode` does not throw.
2023-07-08 09:50:13 +00:00
..
control Wrap long URLs in custom layers overlay 2023-06-02 08:06:55 +02:00
format Prevent Gpsies-style export from throwing for undefined symbols 2023-07-08 09:50:13 +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