Commit graph

196 commits

Author SHA1 Message Date
Gautier P
ddfa439998 Ensure poi name is set (#427) 2021-06-06 14:55:57 +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
Henrik Fehlauer
eb8a7a9d36 Allow Return key to accept dialog when loading no-go areas or track as route
After ca53080e added Return key handling to the "Delete route" dialog, only
the "Load no-go areas" and "Load track as route" dialogs were still missing
similar functionality.

The implementation is based on 2a431932.

Test Plan:
- Open "Load no-go areas" or "Load track as route" dialog.
- Press Space or Return to open file dialog, choose file,
  Tab out of file input and press Return to confirm modal.
- Notice not having to Tab to the respective confirmation button.
2021-03-30 18:00:00 +00:00
Henrik Fehlauer
8b9fda47ad Show missing filename in load no-go areas dialog
5b52abc1 copied `<label>` and `<input>` from the `loadedittrackForm` for
consistency, but missed to add some corresponding code to `NoGoAreas.js`.

After completing the implementation, the filename for loading no-go areas is now
displayed after selecting a file just like in the "Load track as route" dialog.

Test Plan:
- Open "Load no-go areas" dialog.
- Browse and select file.
- The filename should now be shown next to "Browse".
2021-03-29 18:00:00 +00:00
Norbert Renner
a2717ac102 Fix search key 2021-03-27 20:12:42 +01:00
Marcus Jaschen
1b0daa8fce
fix for flickering search field on Firefox @ Android (#394) 2021-03-27 20:00:17 +01:00
Norbert Renner
fbcfd8cf8e Update leaflet-control-geocoder (#296)
Switch BR.Search to ES6 class because L.Control.Geocoder is now an ES6 class and Leaflet L.Class.extend doesn't work anymore (undefined).
2021-03-26 21:13:38 +01:00
Norbert Renner
dd34064e8c Increase file size limit for tracks, configurable
(abrensch/brouter#295)
2021-03-26 08:41:37 +01:00
Marcus Jaschen
d1285baa69 change keyboard shortcuts; update tooltips
- "Load Track as Route" is now triggered by pressing `Shift-O`
- "Load No-Go-Areas" is now triggered by pressing `Shift-N`
- tooltip for navbar link is updated an ready for translation
2021-03-25 07:58:51 +01:00
Marcus Jaschen
bc26eb3042 cleanup/remove unused option value 2021-03-24 11:45:14 +01:00
Marcus Jaschen
dcc5d3a554 add keyboard shortcut for opening route loader dialog
The route loader can be opened by pressing key 'r' now.
2021-03-24 11:43:57 +01:00
Norbert Renner
6a2da2064c Fix overpass layer not selected on hash init 2021-03-24 09:22:11 +01:00
Norbert Renner
ccd9fc51cc Remove ?data= from overpassBaseUrl 2021-03-24 09:06:10 +01:00
Norbert Renner
d3e344fd25
Merge pull request #383 from bagage/feat/improve-mobile
Feat/improve mobile
2021-03-19 18:10:30 +01:00
Gautier P
1c13587974
Update France Go area to 10km 2021-03-19 11:44:37 +01:00
Gautier P
51ed126a12 Rename dialog 2021-03-10 11:25:57 +01:00
Gautier P
845a3f0378
Add message if no elevation data is available (#373) 2021-03-01 20:05:29 +01:00
Gautier P
1ff25a566e
Add missing translatable content (#376) 2021-02-26 20:51:36 +01:00
Norbert Renner
2b94300c61 Handle editable:vertex:deleted event
to also update when a no-go polyline/polygon node is deleted
2021-02-09 15:51:25 +01:00
Norbert Renner
2cec623d89 Add download links to ringgo popup 2021-01-25 10:40:50 +01:00
Norbert Renner
6c4d7c32cf Add ringgo popup
radius now is more an internal state and not passed as option on init anymore
2021-01-25 10:40:50 +01:00
Norbert Renner
d077290654 Add countries mask as hint where ringgo applies 2021-01-23 21:12:02 +01:00
Norbert Renner
b5d87fe8d1 Determine country rules by enclosing boundary 2021-01-23 12:43:13 +01:00
Norbert Renner
3037fb8f17 Use TopoJSON for smaller files 2021-01-22 11:50:27 +01:00
Norbert Renner
a5f04dd9cd
Determine allowed zone from admin boundaries (#359) 2021-01-15 22:29:20 +01:00
alexcojocaru
3c1f5d0d6d Merge remote-tracking branch 'upstream/master' into heightgraph-transpiled 2020-12-21 21:26:53 -08:00
alexcojocaru
63d080d14b Move the GeoJSON building functionality into separate module, and reference it 2020-12-20 22:51:19 -08:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Norbert Renner
1d78e03d0a Show inverted polygon for allowed zone 2020-12-04 19:47:49 +01:00
Gautier P
a2366a26bd Split ring in two to avoid routing issue 2020-12-03 21:04:55 +01:00
Gautier P
8ca602575c Do not override nogos on url load (#349) 2020-12-02 21:11:57 +01:00
Gautier P
fde629fcb0 Reduce circle segments count (#349) 2020-12-02 21:03:28 +01:00
Gautier P
5995e2e879 Do not crash if circlego is not enabled (#349) 2020-12-02 21:03:18 +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
alexcojocaru
d83fddd4ed Set elevation on points without it (workaround for bug in Leaflet.Heightgraph) 2020-11-11 13:27:31 -08:00
alexcojocaru
f1d2855dca Add back the collapse/expand and resize improvements 2020-11-04 20:09:40 -08:00
alexcojocaru
0a67545e63 Clean up logging 2020-11-03 19:56:55 -08:00
alexcojocaru
dd3c9921e2 More testing... 2020-11-03 19:34:26 -08:00
alexcojocaru
0fd13b0e8f Testing... 2020-11-02 22:42:27 -08:00
alexcojocaru
6bb769c2da Handle undefined altitude coordinate on latLng points 2020-11-02 21:14:49 -08:00
alexcojocaru
6b5912e16a clean up; prod ready 2020-10-26 22:19:38 -07:00
alexcojocaru
73ad89e727 improvements to gradient normalization 2020-10-26 22:19:38 -07:00
alexcojocaru
0adc28d5df normalize gradient 2020-10-26 22:19:38 -07:00
alexcojocaru
75b68ebfe1 add comments; clean up 2020-10-26 22:19:38 -07:00
alexcojocaru
bd0679d15c Fix conflicts in Heightgraph integration 2020-10-26 22:19:37 -07:00
alexcojocaru
77ed28cb76 Use Heightgraph transpiled 2020-10-26 22:19:37 -07:00
alexcojocaru
5fd3977768 Use Heightgraph in lieu of Elevation (part V)
- fix the grade calculation
- don't show the grade labels, as they are all over (should be normalized)
- fix the display issues by overridding the heightgraph CSS
2020-10-26 22:19:37 -07:00