Commit graph

576 commits

Author SHA1 Message Date
Norbert Renner
4d44153316 Read time/energy calc variables from profile
and ensure profile text is loaded before updating route and straight line stats
2022-02-15 19:30:49 +01:00
Norbert Renner
9abf4b94c4 Calc stats for straight line 2022-02-07 17:52:16 +01:00
Norbert Renner
025eb02a6a Fix stats tests by summarizing integer distances 2022-01-20 18:38:51 +01:00
Marcus Jaschen
103b00a519
'l' toggles locate state (#462) 2021-11-22 21:29:28 +01:00
Marcus Jaschen
d9699127f9 Highlight route segments for parts with normalized surface and smoothness values
This commit ensures that all matching route segments are highlighted when hovering over a surface or smoothness line in the analysis tables.
2021-11-20 14:17:20 +01:00
Marcus Jaschen
9ca93e4c03 Normalize surface and smoothness variants
The `surface` tag exists in different variants,
e.g. `surface`, `cycleway:surface` etc.

Previously, the `surface` and `smoothness` tags were only processed for route analysis if they were found in their canonical form in the BRouter server response.

With this commit, the variants are normalized down to the main tag name which has the effect that they're included in the route analysis.

Fixes #438
2021-11-20 13:46:14 +01:00
Marcus Jaschen
492797f2a5
Add OpenStreetMap Notes Layer (#458)
* use a local variable (best practices)

* Add OpenStreetMap notes as overlay.

This commit adds a new layer which renders OpenStreetMap notes in the
current view.

The layer can be activated via the "More" button in the layers sidebar.

Fixes #439
2021-11-17 20:03:07 +01:00
Marcus Jaschen
5ec72901f1 don't store empty search queries to search favorites 2021-11-15 19:00:54 +01:00
Marcus Jaschen
1551fec917 Husky fixes for Search/SearchFavorites 2021-11-15 19:00:54 +01:00
Marcus Jaschen
f1557a1d5c remember and recall last used (non-custom) profile 2021-11-15 19:00:40 +01:00
Norbert Renner
7c8c71a3de Add stats track tests (failing) 2021-10-14 17:53:21 +02:00
The Ripper
05ff4bd430
Favorite list for search (geocode control) (#452)
* search favorites

Adds the ability to save search terms, use this for autoexpand during
typing in searchbox or select from whole list

* moved class vars to contructor

Co-authored-by: Karl Schweiger <kschweiger@directbox.com>
2021-10-13 19:39:48 +02:00
Norbert Renner
bd2e89ef06 Temporarily add transpiled BRouter CheapRuler
for better comparison during development
2021-10-08 19:40:41 +02:00
Norbert Renner
af1a11872a Initial client-side stats from BRouter StdPath.java
- `computeKinematic` and dependencies extracted from:
57da34d205/brouter-core/src/main/java/btools/router/StdPath.java
- transpiled with JSweet 3.0.0 - http://www.jsweet.org/jsweet-live-sandbox/
- manual cleanup
2021-10-04 10:26:54 +02:00
Norbert Renner
fe05081678 Add beeline support to distance markers
- update on beeline toggle
- avoid distance markers wandering accross the map while routing many waypoints, because beelines are added immediately, by turning off updates in-between
2021-07-02 19:44:43 +02:00
Norbert Renner
7118cc70d7 Show empty cells in data tab instead of 0
which makes it more clear that there is no data
2021-07-01 12:05:16 +02:00
Norbert Renner
9f4a4983c5 Support beelines on reverse 2021-07-01 12:02:49 +02:00
Norbert Renner
f185d78dca Support undefined highway tag for beelines 2021-06-29 21:51:28 +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
f3d48dc63e Add message headings to fix error in data tab 2021-06-12 11:19:57 +02:00
Norbert Renner
da2043fb47 Break after self-closing trkpt without ele (beeline) 2021-06-12 11:11:08 +02:00
Norbert Renner
c3db03d1e3 Keep ele when removing duplicates on concat 2021-06-11 12:01:10 +02:00
Norbert Renner
cafb87cc6e Add basic beeline support by dummy feature 2021-06-09 17:04:11 +02:00
Gautier P
ddfa439998 Ensure poi name is set (#427) 2021-06-06 14:55:57 +02:00
Norbert Renner
eb8492e30d Fix loading trailer animation 2021-06-03 20:30:08 +02:00
Phylor
bad8b53cf4
Add SwissTopo tile layers (#422) 2021-06-02 20:33:48 +02:00
Norbert Renner
7c1347668d Prevent trailer showing on beeline button clicks 2021-05-21 17:43:52 +02:00
Norbert Renner
84a69e0af1 Patch Leaflet drag offset bug 2021-05-21 09:17:33 +02:00
Norbert Renner
91108bc334 Fix hidden routing marker still being interactive 2021-05-20 21:02:31 +02:00
Norbert Renner
47f3a06be6 Improve route interactivity by using canvas 2021-05-20 13:11:18 +02:00
Norbert Renner
2cd233f70d Update Leaflet to 1.7.1 2021-05-19 21:09:29 +02:00
Marcus Jaschen
7850e97eed
replace native HTML tooltip for custom POIs with Leaflet Tooltip (#415)
- the tooltip shows instantly when hovering a POI icon with the mouse cursor
- the content is the same as for the popup, except for the action button (“delete”) as the button isn't reachable by the mouse (the tooltip disappears when the mouse cursor leaves the icon area)
- (maybe we should add a hint to the tooltip, e.g. “Click icon for actions” (TBD))
- the tooltip is only attached to POI icons on devices without a touch interface, i. e. when `BR.Browser.touch` is `false`
- the tooltip is removed when the icon is clicked, otherwise tooltip and popup would be visible at the same time
- the tooltip is enabled again when the popup is closed
2021-05-14 19:33:39 +02:00
Marcus Jaschen
93af0656fa
add tooltip with POI name to POI icons (#414) 2021-05-14 10:31:55 +02:00
Gautier P
5e14484302
I18n nogo areas errors (#413) 2021-05-13 17:02:18 +02:00
Gautier P
7abd8d61dc Fix nogo area loading via URL (#405) 2021-05-08 15:54:47 +02:00
Norbert Renner
b4fbae093f Add beeline button 2021-05-05 22:25:10 +02:00
Norbert Renner
6ea972bcf8 Avoid accidental zooms while drawing beeline 2021-04-30 18:30:01 +02:00
Norbert Renner
b4368c1f51 Toggle beeline mode and style beeline
Restore removed key listeners of super class to avoid duplicate calls (36d8a20)
2021-04-29 20:41:38 +02:00
Norbert Renner
acf9c59888 Initial take on supporting straight line segments 2021-04-16 19:07:52 +02:00
Norbert Renner
1330317f1d Merge branch 'master' into 68-sl-formatting 2021-04-10 12:48:10 +02:00
Norbert Renner
393a3fa129 Cleanup and credits 2021-04-09 11:52:51 +02:00
Norbert Renner
c3abfa9c9a Show overpass icons in layer tree 2021-04-07 18:05:47 +02:00
Norbert Renner
7bcbb1a8e4 Use Font Awesome 5 icons as SVG for POI layers
where iD Tagging Schema references "fas-*" icons.

For now, only use selected FA 5 SVG files for overpass layers (without loading any FA 5 JS, CSS or font) and  stick with FA 4.7 for everything else.
2021-04-07 18:05:47 +02:00
Stefan Siegl
deef3bfb0d
Work around nodeFeature=Marker not working correctly 2021-04-03 21:46:05 +02:00
Stefan Siegl
d2bc580b14
Show temaki icons in overpass markers 2021-04-03 21:38:02 +02:00
Stefan Siegl
d60ab7937c
Show maki icons in overpass markers 2021-04-03 21:20:42 +02:00
Stefan Siegl
c3a9221c52
Use nodeFeature = Marker 2021-04-03 19:06:04 +02:00
Norbert Renner
7aa2fcb93c Download in client from Blob URL 2021-04-01 23:42:56 +02:00