Henrik Fehlauer
eeb1c5bde3
Emit console warning when using an unsupported BRouter version
...
abrensch/brouter@c9ae7c8681 changed indexing of voice hint ids, because
some new hints were inserted in the middle instead of strictly at the
end, changing the numbering of existing ids. For example, now id `12`
was sent to indicate a right u-turn, while we still assume the old
meaning of `12`, i.e. "off route". This clearly was an API break.
This leads us to abort exporting with the Gpsies turn instructions
style, since `OFFR` has an `undefined` symbol assigned, as well as
emitting wrong voice hints for ids after `9`. Another unwelcome side
effect is showing negative exit numbers for roundabouts.
This breakage in the GeoJSON HTTP API has been shipping in BRouter 1.7.0
and 1.7.1 and finally got fixed with abrensch/brouter@82fecf9 contained
in BRouter 1.7.2 or later. Earlier releases like 1.6.3 are also
unaffected. To avoid emitting incorrect voice hints in BRouter-Web,
running with broken versions of BRouter should be avoided.
By checking the "Creator" field after receiving the first response from
BRouter, we can now emit a warning if the version of BRouter used is
unsupported. The warning mostly targets administrators and power users,
i.e. those responsible for choosing the software versions used, and it
is also only shown once per session.
Note that the version check is compatible with the common "SemVer"
scheme, so the check should continue working and even support more
complex version compatibility scenarios as long as BRouter stays
SemVer-compliant.
Ref #751
Test Plan:
- Run with BRouter 1.6.3 and 1.7.2, no warnings shown.
- Run with BRouter 1.7.0 and 1.7.1, warnings shown only for the first
segment.
2023-07-06 09:46:47 +00:00
Norbert Renner
2493fd6465
Fix hash formatting for POI at 0,0
...
Opening this URL and moving the map produces `pois=NaN,NaN` in the URL hash:
https://brouter.de/brouter-web/#map=2/0/0/standard&pois=0,0,Null%20Island
2023-05-17 13:02:47 +02:00
Norbert Renner
5cc64015b9
Rename hiking-beta profile to hiking-mountain
...
- remove " (beta)" in locale text, stick to plain "Hiking" as long as we have only one and base parameters stay the same
- map hash for old URLs
2022-05-23 11:34:03 +02:00
Norbert Renner
6cdfb96914
Fix async usage after update
...
- change package dir
- replace broken kill patch with remove filter
2022-05-17 11:27:43 +02:00
Norbert Renner
39f3a10965
Support beelines in data and analysis tabs (WIP)
2021-06-25 22:33:11 +02:00
Norbert Renner
044dab0f80
Encode beeline hash as indexes
2021-06-23 23:23:36 +02:00
Norbert Renner
3c8be96085
Support beelines in hash url (first stab)
2021-06-19 16:23:01 +02:00
Norbert Renner
a5f04dd9cd
Determine allowed zone from admin boundaries ( #359 )
2021-01-15 22:29:20 +01:00
Gautier P
25429b3c24
Update prettier version
2020-12-05 11:51:16 +01:00
Gautier P
779c720b7d
Add 20km allowed zone icon ( #347 )
...
Co-authored-by: Gautier P <gautier_git@damsy.net>
2020-12-01 20:56:14 +01:00
Antonin Delpeuch
7c02d78f0b
Fix color coding by cost. Closes #340 . ( #341 )
...
Fix color coding by cost. Closes #340 .
This makes sure it is relative to the length of the path.
2020-10-24 12:28:26 +02:00
Norbert Renner
a70cf43838
Fix Custom option not disabled when URL with profile
...
Getting value of 'profile' ele no longer works (?), replace with proper
check if profile name is custom.
2019-11-29 15:45:31 +01:00
Gautier Pelloux-Prayer
71c5075f9c
Add eslint
2019-11-03 14:29:26 +01:00
Norbert Renner
ddf8e27085
Merge pull request #226 from bagage/222-add-users-poi
...
export user's POI (point of interest)
2019-10-10 22:17:44 +02:00
Gautier Pelloux-Prayer
fa5af58372
Add markers POI layer
2019-10-10 21:07:49 +02:00
Matzepan
544aab0716
Fixed problems with gulp-uglify
2019-10-10 19:36:25 +02:00
Unknown
9eeca7e2d5
Added hotline based route overlay
...
Added a overlay which reflects the quality of the route based on either:
* cost
* altitude
* incline
2019-10-10 19:35:51 +02:00
Gautier Pelloux-Prayer
d31be926d2
Increase prettier maxwidth to 120
2019-08-10 19:36:36 +02:00
Gautier Pelloux-Prayer
edd014a830
Run prettier
2019-08-07 10:38:52 +02:00
abrensch
42abbbcb75
Merge branch 'master' into master
2019-08-05 17:20:54 +02:00
Brenschede
8d5303b5ea
eliminated h2096617.stratoserver.net
2019-08-05 17:10:38 +02:00
Phyks (Lucas Verney)
5dc7445d62
Rework the include wording in the export modal
2019-07-20 19:43:07 +02:00
Phyks (Lucas Verney)
c1169c5c6a
Export waypoints from BRouter-web interface. Counterpart of https://github.com/abrensch/brouter/pull/170
2019-07-16 12:12:31 +02:00
Norbert Renner
13407465f3
Ensure not undefined for polylines and polygons also ( #183 )
...
Which is the case when parsing polylines/polygons URL parameter without
weight.
2019-05-21 18:10:28 +02:00
Gautier Pelloux-Prayer
2a93efe455
Make gulp release happy
2019-05-20 21:49:21 +02:00
Gautier Pelloux-Prayer
64ceccf780
Ensure that nogo weight is not null nor undefined before using it
2019-05-20 19:29:20 +02:00
Gautier Pelloux-Prayer
3aba471c0a
Add track name
2019-05-18 23:46:08 +02:00
Gautier Pelloux-Prayer
970a34981f
Add prettier and reformat code
2019-05-17 20:55:39 +02:00
Phyks (Lucas Verney)
c58818e50b
Fix for a few errors when loading nogos with weight
...
* Nogo weight was not set when loading nogos with a default weight
value.
* The URL would show up "NaN" values upon reloading the web interface
after having loaded some nogos.
Fix #174 .
2019-05-10 08:50:38 +02:00
Gautier Pelloux-Prayer
f54d72644b
translate via i18next
2019-02-26 18:02:02 +01:00
Phyks (Lucas Verney)
6e60751db0
Render polygons from URL hash and pass it to BRouter server
2019-02-18 21:00:36 +01:00
Phyks (Lucas Verney)
9a4dd78644
Add basic support for nogo polylines and polygons (no UI).
2019-01-05 00:07:52 +01:00
Phyks (Lucas Verney)
d43827cdd2
Add support for nogo weights in BRouter interface
2019-01-04 23:08:54 +01:00
Norbert Renner
fa86f0d248
Restore not adding custom profile to URL ( #66 )
...
See
1527a07d0e
2018-10-08 21:19:18 +02:00
Gautier Pelloux-Prayer
595ac34d58
Fix profile/alternative loading
2017-05-03 22:01:15 +02:00
Gautier Pelloux-Prayer
0947bbc89c
Support URL even if latlon are missing
2017-04-07 08:43:15 +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
7a4eefed17
Leaflet 1.0: "L.geoJson" renamed to "L.geoJSON" (for consistency)
2017-03-16 09:46:26 +01:00
Norbert Renner
d9862d6cd2
Catch JSON.parse SyntaxError to show error message ( #53 )
2016-10-06 12:26:01 +02:00
Norbert Renner
14f8484953
add notes: not a public API
2015-06-19 12:11:51 +02:00
Norbert Renner
5a10a3a8f7
refactoring: use Util.getError
2015-03-25 11:30:38 +01:00
Norbert Renner
928229530f
handle old 'format=gpx' permalinks: format is not an option
2014-08-22 10:44:54 +02:00
Norbert Renner
726cf4bba6
switch to GeoJSON response format instead of GPX:
...
- use BRouter track stats
- remove leaflet-gpx plugin
2014-08-22 10:10:07 +02:00
Norbert Renner
59d4acc3c6
abort pending requests from previous rerouteAllSegments (empty queue)
2014-08-20 16:03:01 +02:00
Norbert Renner
9ec5985b2c
sequential segment requests (Async.js queue) instead of firing all at once,
...
fixes terminated requests when number of segments > maxthreads
2014-08-20 12:34:27 +02:00
Norbert Renner
fd98a2f102
error handling
2014-08-01 17:44:57 +02:00
Norbert Renner
5446bec15e
move URL host to config
2014-05-30 14:17:06 +02:00
Norbert Renner
db63c0dd80
basic error handling for route request (needs more work)
2014-05-28 12:46:46 +02:00
Norbert Renner
f8768c5f8e
error handling for profile upload
2014-05-27 18:21:21 +02:00
Norbert Renner
3c0765547c
reuse existing custom profile file in editing session by passing id in URL
2014-05-22 18:01:12 +02:00