Commit graph

40 commits

Author SHA1 Message Date
Henrik Fehlauer
09f987ea07 Combine and reuse translations for keyboard shortcuts
Using i18next's "nesting" and "interpolation" features should reduce the
overall number of strings to translate, as well as provide a
standardized pattern for shortcut tooltips (if applicable).

Note that this approach is still allowing for flexibility regarding
differently structured sentences in each language.

Resolves #315
2020-06-21 18:00:00 +00:00
Henrik Fehlauer
fd97019fdc Add shortcut to trigger geolocation
Press 'L' to initiate the "Show me where I am" function.
2020-05-31 18:00:00 +00:00
Norbert Renner
e5e876f717 Make privacy policy URL configurable (#284) 2020-05-28 10:54:08 +02:00
Norbert Renner
b11c182a29 Fix route drag on mobile for Leaflet 1.6.0 (#285) 2020-05-26 12:27:32 +02:00
Gautier P
92ad30be17 Hide zoom controls on mobile 2020-05-24 21:24:14 +02:00
Gautier P
23b5439159 Keep fallback values in code in case config.js is not updated with new required fields 2020-04-14 18:44:05 +02:00
Robert Sacks
e91b22ede0 Add config option for initial map position and zoom 2020-04-14 18:42:48 +02:00
Norbert Renner
9076e1efd3 Update brouter.de links to https 2019-09-05 12:05:29 +02:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Norbert Renner
708b35f642 Set default zoom to 5 instead of 6, because of longer caching (#205) 2019-06-17 13:43:14 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Norbert Renner
e049dbf42a Show layer bounds in preview (#146) 2019-04-26 21:31:13 +02:00
Norbert Renner
bea7af0084 Generate layer credits dynamically (#146) 2019-04-19 22:00:25 +02:00
Norbert Renner
282edbbc01 Prevent unnecessary tile loading for default base layer
by only setting it if no layer activated by hash URL
2019-04-03 12:41:39 +02:00
Norbert Renner
d83ffa3fbc Support optional and custom layers in hash URL
- extend layer control to get current active layers (and more)
- access layer control in hash instead of static initial list
- use ',' layer separator and encode layers individually, so that comma
in layer name gets encoded and is not mistaken as separator as with '-'
2019-03-29 22:20:52 +01:00
Norbert Renner
944ccd6cfa Make default layers customizable 2019-03-22 19:50:45 +01:00
Norbert Renner
be7db71f4f Preview layer 2019-03-16 13:09:14 +01:00
Gautier Pelloux-Prayer
f54d72644b translate via i18next 2019-02-26 18:02:02 +01:00
Norbert Renner
8db4120ec8 Add option to configure the default base layer 2018-09-08 12:30:35 +02:00
Norbert Renner
da1808bb32 Only add location control in secure context (#60) 2018-08-31 14:24:43 +02:00
Sven Geggus
69bd3d8d1f
maxNativeZoom=19 for German style
German style is also available up to zoom level 19
2018-08-08 17:52:11 +02:00
Norbert Renner
59827a524f Restore (short) attribution on the map, closes #110 2018-07-03 20:41:26 +02:00
Norbert Renner
23e7eb073e Add Layers control as tab to sidebar 2018-03-08 11:47:44 +01:00
Norbert Renner
d08bc38719 Merge pull request #77 from bagage/feature/user-layers
Allow user to add custom layers
2017-05-20 12:59:26 +02:00
Gautier Pelloux-Prayer
9109322905 Use https scheme whenever possible, to avoid mixed content issues 2017-05-09 22:14:39 +02:00
Gautier Pelloux-Prayer
8dcf23b170 Allow user to add custom layers 2017-05-08 11:42:30 +02:00
Gautier Pelloux-Prayer
ac57250b7e Remove "/brouter?" from URL 2017-04-24 16:11:53 +02:00
Gautier Pelloux-Prayer
e82f360d9c Replace permalink/Share URL feature with automatic URL rewriting on change. 2017-04-04 10:27:51 +02:00
Norbert Renner
0eba7f40be Merge branch 'v0.6-fixes' 2017-03-15 09:36:40 +01:00
Norbert Renner
98acb27f5f Add Thunderforest API key ("Hobby Project" plan), fixes #70 2017-03-14 19:02:11 +01:00
Gautier Pelloux-Prayer
d7e476db82 Updating UI to also fit on mobile devices. Fix #34 2017-01-23 10:47:28 +01:00
Norbert Renner
1e26cb1027 Add Esri World Imagery layer 2016-12-12 12:47:01 +01:00
Norbert Renner
b8566dbd12 Uncaught SecurityError now fixed in Leaflet.RestoreView 2016-10-07 12:57:39 +02:00
Norbert Renner
514cc705ef catch SecurityError with localStorage, fixes #47 2016-10-05 11:49:54 +02:00
Norbert Renner
b108efae5c switch icons to Font Awesome (for now) 2016-10-01 12:30:30 +02:00
Norbert Renner
d53fb7723f add DigitalGlobe Recent Imagery layer 2016-09-22 19:13:48 +02:00
Norbert Renner
a9f2b0cb18 add keys.js to configure API keys instead of specific ajax loading 2016-09-22 12:06:18 +02:00
Norbert Renner
0e471bade0 Replace custom Bing.js with current
Now provides file:// support and init on layer add instead of page load
2016-09-21 19:53:38 +02:00
Norbert Renner
0d30461ebc refactoring: extract scale & locate controls to Map.js 2016-08-05 12:32:29 +02:00
Norbert Renner
49ac7f5127 refactoring: extract map/layer init into separate file 2016-08-05 12:12:00 +02:00