Commit graph

496 commits

Author SHA1 Message Date
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
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
Gautier P
ddfa439998 Ensure poi name is set (#427) 2021-06-06 14:55:57 +02:00
Phylor
bad8b53cf4
Add SwissTopo tile layers (#422) 2021-06-02 20:33:48 +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
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
Henrik Fehlauer
7edae911dc Select parts of trackname in export dialog for easier overwriting
Users might want to assign custom tracknames, which requires deleting the
default name either entirely or parts of it.

By pre-selecting parts of the trackname, users can start typing right away
after opening the dialog. `Ctrl+A` to select everything is still possible,
but keeping the distance in the filename by default comes in handy,
e.g. when using a file manager not displaying the track length.

NB: Might need adaptation once trackname validation becomes less strict,
i.e. currently "(" and "->" as specified in the message catalog are replaced
with ' - ' by the validator before being inserted into the dialog.

Test Plan:
- Open "Export" dialog ("Location - Other Location - 2km")
- Open "Export" dialog for roundtrip ("Location - 1km")
- In both cases the complete trackname except for the distance
  information (including separator) should be selected.
- No unwanted behaviour even if Nominatim is slow or down.
2021-04-01 18:00:00 +00:00
Norbert Renner
0fc468a682 Format CSV 2021-04-01 12:17:18 +02:00
Norbert Renner
00f2cead36 Format KML 2021-04-01 11:53:17 +02:00
Henrik Fehlauer
13794c3df3 Set focus in modals to first input field by default
After invoking a shortcut, some dialogs required pressing `Tab`
or using the mouse until focus was moved to the primary input field.

By moving the focus automatically, users can start typing right away.
This is particularly useful in conjunction with the `Return` key for
confirming the dialog.

Test Plan:
- Press `X` to open "Export" dialog:
  "Name" field has focus.
- Press `Shift+O` to open "Load track as route":
  "Trackfile" is focussed, file dialog opens with `Space`.
- Check "Load no-go area" dialog.
- Check "POI name" dialog.
2021-03-31 18:00:00 +00: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
7caa7aeba6 Keep trkpt and wpt on single line
to better match BRouter output
2021-03-27 15:19:03 +01: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
Gautier P
dee2515592 Avoid what's new content blinking 2021-03-26 16:19:33 +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
0998e210e4 Merge remote-tracking branch 'upstream/master' into feature/route-loader-keyboard-shortcut 2021-03-25 08:00:26 +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
Norbert Renner
e9540170a7 Check if localStorage is available (#388) 2021-03-24 18:48:44 +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
8e328e9f0e Add credit for POIs, link to configured instance 2021-03-24 11:02:21 +01:00
Norbert Renner
9f5cb05532 Show specific message type for loading 2021-03-24 09:32:49 +01:00
Norbert Renner
6a2da2064c Fix overpass layer not selected on hash init 2021-03-24 09:22:11 +01:00
Norbert Renner
127f8e9e5b Use other color than blue when CyclOSM default
see also #297
2021-03-24 09:16:57 +01:00
Norbert Renner
ccd9fc51cc Remove ?data= from overpassBaseUrl 2021-03-24 09:06:10 +01:00
Gautier P
83ac111262 Remove whatsnew icon when modal is displayed or dismissed 2021-03-23 16:29:04 +01:00
Gautier P
cb9f4fd85d Fix error/warning messages display 2021-03-23 11:06:35 +01:00
Gautier P
055a5f54eb Do not display whatsnew for new users 2021-03-23 11:05:46 +01:00
Marcus Jaschen
ca53080e7a
auto-focus primary button in "delete route" dialog (#387)
After opening the "delete route" dialog the primary action button gets the
current focus. So it's possible to confirm resetting the route by pressing
"Enter".

bootbox had to be updated to to achieve this (in prior versions of bootbox the
needed callback didn't exist).

see #385
2021-03-23 09:45:35 +01:00
Norbert Renner
f3d4b23726
Merge pull request #384 from stesie/add-overpass-layer-re
Add (Overpass based) POI layer
2021-03-22 21:50:03 +01:00
Stefan Siegl
45b8b40ce8
Add loading indicator 2021-03-22 20:54:11 +01:00
Stefan Siegl
6b9f369d88
Set minZoom=12 2021-03-21 11:06:55 +01:00
Stefan Siegl
ed4b3ee3e2
Remove markerSymbol 2021-03-21 11:06:32 +01:00