Commit graph

926 commits

Author SHA1 Message Date
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
Norbert Renner
2aa840acda
Merge pull request #412 from mjaschen/feature/add-overpass-poi-layer-supermarket
Feature/add overpass poi layer supermarket
2021-05-13 14:13:51 +02:00
Marcus Jaschen
7ff675ef9f change icon for "supermarket" to shopping cart
> One suggestion for distinguishing between a supermarket and a convenience shop, is that a supermarket is large enough to use trolleys. [OSM Wiki](https://wiki.openstreetmap.org/wiki/Tag:shop%3Dsupermarket)
2021-05-12 21:49:44 +02:00
Marcus Jaschen
747ef75570 add "supermarket" POI layer 2021-05-12 21:46:53 +02:00
dependabot[bot]
e63cc6ba31
Bump hosted-git-info from 2.8.5 to 2.8.9 (#407)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.5 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.5...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 21:38:50 +02:00
Gautier P
7abd8d61dc Fix nogo area loading via URL (#405) 2021-05-08 15:54:47 +02:00
Norbert Renner
8fff1d15cd
Merge pull request #406 from nrenner/dependabot/npm_and_yarn/ua-parser-js-0.7.28
Bump ua-parser-js from 0.7.22 to 0.7.28
2021-05-07 19:17:41 +02:00
dependabot[bot]
3a0f110493
Bump ua-parser-js from 0.7.22 to 0.7.28
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.22 to 0.7.28.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Commits](https://github.com/faisalman/ua-parser-js/compare/0.7.22...0.7.28)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 16:13:41 +00:00
Norbert Renner
5c70e30c13 Add tests section to contributing 2021-04-14 11:12:43 +02:00
Norbert Renner
06f1c77774
Merge pull request #399 from nrenner/68-sl-formatting
Client-side track formatting
2021-04-10 13:13:34 +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
3e235a345c Fix duplicate "ice_cream" layer id and layers key
When bundling layers.js the file name is used as property name, independent of directory structure.
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
Norbert Renner
87858b36e4
Merge pull request #397 from stesie/overpass-icons
Use L.Marker in Overpass layer + maki/temaki icons
2021-04-06 17:19:42 +02:00
Stefan Siegl
b3d07d10b2
List make/temaki in credits/licenses 2021-04-03 21:54:45 +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
Stefan Siegl
51acf718b4
Add icon references 2021-04-03 17:31:40 +02:00
Norbert Renner
8bcfe74e5b
Merge pull request #395 from rkflx/pr/improve-keyboard-handling-and-dialog-uis
Improve keyboard handling and dialog UIs
2021-04-02 17:11:43 +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
Norbert Renner
bcd6c1a0d3 Fix bump:html for release task (#366) 2021-03-31 12:24:27 +02:00
Norbert Renner
990b2f5fae Bump version manually 2021-03-30 21:13:03 +02:00
Norbert Renner
61dc9e5591 release: 0.16.0 2021-03-30 20:47:32 +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
Norbert Renner
a5e4be1b15 Update changelog for version 0.16.0 2021-03-30 13:05:45 +02:00
Norbert Renner
448549246c Update translations 2021-03-30 12:53:10 +02: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
Henrik Fehlauer
ef37b65c75 Fix loading no-go areas
5b52abc1 broke importing no-go areas, in particular after choosing a file
and clicking on "Load" nothing would happen.

This is due to renaming the `<input>`'s `<id>` which is still referenced
in `NogoAreas.js` by its old name.

Undoing the rename resolves the issue.

Test Plan:
- Open "Load no-go areas" dialog.
- Click on "Browse" and select GeoJSON file (e.g. as referenced in #161).
- Click on "Load".
- The no-go areas should be added to the map.
2021-03-28 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
Henrik Fehlauer
f31c379369 Fix broken Return key in export route dialog
2a431932 made it possible to press `Return` to confirm the export dialog.
After 5b52abc1 this stopped working though, even when the text input had focus.

This is due to moving the `<input>` out of the `<form>` and referencing the
form's `name` attribute instead. However "The value of [the form] attribute
must be the id of a <form> in the same document" according to
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button.

Adding such an `id` restores the `Return` key to working properly.

The same change is done for the no-go form, where the same issue would otherwise
affect a later patch adding similar `Return` key handling.

Test Plan:
- Create Route, open "Export route" dialog.
- Move focus to an input field.
- Press `Return`.
- The file dialog for saving should open.
2021-03-27 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
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
cd8ac29aab
Merge pull request #392 from bagage/fix/whatsnew-blink
Fix/whatsnew blink
2021-03-26 20:00:12 +01:00
Henrik Fehlauer
144cc2923e Add more exceptions to .prettierignore
This allows `yarn prettier` to run successfully.
2021-03-26 18:00:00 +00:00
Gautier P
dee2515592 Avoid what's new content blinking 2021-03-26 16:19:33 +01:00
Gautier P
268525269b Watch Changelog changes in gulp 2021-03-26 16:05:12 +01:00
Norbert Renner
6d0cfa7999 Update en.json 2021-03-26 08:41:37 +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
5f0f155e5f
Improve typography for "What's new?" dialog (#391)
- remove <h1> (redundant)
- adjust font-sizes and margins for headings (h2, h3)
2021-03-26 08:28:40 +01:00
Norbert Renner
a066adc752
Merge pull request #390 from mjaschen/feature/route-loader-keyboard-shortcut
Route Loader Keyboard Shortcut
2021-03-25 09:16:50 +01:00