Bryan Housel
9f30ebf551
Adjust verbose utilDisplayLabel call, use for more validation messages
...
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-794527259 )
2021-03-10 10:30:57 -05:00
Bryan Housel
c3e9e8c8ff
Support a more verbose format for listing issues
...
Includes the feature type in the label
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-791919134 )
2021-03-08 12:15:17 -05:00
Quincy Morgan
611abf8ed0
Enable rotating selection even when mouse isn't over the map (re: #8187 )
2020-12-03 15:04:21 -05:00
Quincy Morgan
ba48a861bc
Enable curly and block-spacing eslint rules
2020-11-10 14:19:11 -05:00
Quincy Morgan
d247ec3aed
Enable brace-style eslint rule
2020-11-10 13:49:48 -05:00
Quincy Morgan
4059ee5118
Enable block-scoped-var eslint rule
2020-10-23 13:38:36 -04:00
Quincy Morgan
04b3a788f9
Add lint:fix script
...
Enable no-trailing-space eslint rule
2020-10-23 13:24:44 -04:00
Quincy Morgan
6549bcc197
Enable no-eq-null eslint rule
2020-10-23 11:27:32 -04:00
Quincy Morgan
21a49bbec8
Initial support for D3 v6.2.0
2020-10-06 15:08:39 -04:00
Quincy Morgan
9effdf9724
Display the expected preset name for the mismatched geometry issue messages ( close #8018 )
2020-09-24 08:58:45 -04:00
Quincy Morgan
bbbf401232
Add en fallback in coreLocalizer instead of utilDetect.browserLocales
...
Include all preferred and fallback langauges in coreLocalizer.localeCodes even if higher-priority ones have 100% string coverage
Fallback to the user's preferred languages instead of directly to English when querying OSM wikibase documentation and Wikidata (re: #7996 )
Add `lang` attribute to tag documentation text loaded from OSM wikibase or Wikidata (re: #7963 )
2020-09-23 16:15:34 -04:00
Quincy Morgan
45decdb54c
Enable scaling the selection via hotkeys
2020-09-21 14:02:41 -04:00
Quincy Morgan
28ea082892
Add additional Enter key characters
2020-09-21 11:00:00 -04:00
Quincy Morgan
4fe62d0efb
Move plus/minus key list to utilKeybinding property
2020-09-21 10:59:45 -04:00
Quincy Morgan
5f93da5a59
Add a reusable function for calculating the combined extent of multiple entities (re: #7706 )
2020-06-16 13:17:43 -04:00
Quincy Morgan
0473243930
Add workaround for broken rapid tapping on iOS 13.4+ ( close #7694 )
2020-06-15 12:27:53 -04:00
Quincy Morgan
2064f7a2f7
Update util function comments
2020-06-10 12:44:10 -04:00
Quincy Morgan
d01f1598d3
Show the delete button for filled multilingual name fields even if no name tag is present ( close #7572 )
...
Focus the language input when clicking a multilingual name field label instead of deleting the value
Be more lenient with `utilUniqueDomId` function input
2020-06-10 10:35:03 -04:00
Quincy Morgan
762307bd7d
Restrict key, value, and role character limits based on unicode characters, not UTF-16 code units (re: #6817 )
2020-06-09 15:41:15 -04:00
Quincy Morgan
572ce0a787
Make sure horizontal-only scroll events can be translated into map pans ( close #7659 )
2020-06-04 13:29:45 -04:00
Quincy Morgan
a5091c3bd0
Account for pointerId and simplify position calculations in doubleUp (re: #7611 )
2020-05-18 09:58:15 -04:00
Quincy Morgan
67bef3a692
Add sameSite=strict attribute to lock cookies ( close #7596 )
2020-05-13 09:37:12 -04:00
Quincy Morgan
5a8f573889
Continue zoom/pan of map when a down pointer moves off the map (re: #5505 )
...
Fix possibly #6745
2020-05-08 15:30:38 -07:00
Quincy Morgan
509ee8fe65
Import function from module instead of file
2020-05-08 15:03:03 -07:00
Quincy Morgan
d16aa01afd
Fix occasional console error
2020-04-02 12:40:41 -07:00
Quincy Morgan
0120b009fa
Take a graph parameter in utilDisplayLabel instead of the context
2020-04-01 13:29:17 -07:00
Quincy Morgan
60f7dc7c0b
Replace presets property of context with singleton
...
Remove utilPreset
2020-04-01 13:08:45 -07:00
Quincy Morgan
a1af118f0e
Ensure locales and presets are loaded before the UI loads ( close #7406 )
...
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
d8585ae2fb
Fix lint warning
2020-03-29 10:55:32 -07:00
Quincy Morgan
eec1a23388
Fix RTL mouse coordinate calculation issue
2020-03-29 09:54:02 -07:00
Quincy Morgan
5195d8d95b
Don't use d3_mouse and cache client rect values as needed ( close #7489 )
2020-03-28 16:32:38 -07:00
Quincy Morgan
4addcc961d
Discount right-clicks during double up detection
2020-03-26 13:27:15 -07:00
Quincy Morgan
f1d1bfa402
Improve utilDoubleUp comment
2020-03-25 09:48:20 -07:00
Quincy Morgan
d62a62cba8
Make popover and tooltip part of the UI module instead of utils
2020-03-24 17:32:09 -07:00
Quincy Morgan
4872b06a28
Randomize form field ids to thwart browser memory and help with embedding iD ( close #6444 )
2020-03-21 13:16:40 -07:00
Quincy Morgan
7adaa2f753
Merge branch '2.x' into issue#7297
2020-03-13 14:13:44 -07:00
Quincy Morgan
de1bfe624f
Replace mouse and touch events with pointer events in popover.js (re: #5505 )
2020-03-13 12:34:06 -07:00
Quincy Morgan
70380880db
Properly end the gesture if unexpectedly moving a non-down pointer
2020-03-10 12:17:25 -07:00
Quincy Morgan
284ff28961
Fix issue where map could pan when moving the mouse without a down pointer
2020-03-10 11:52:48 -07:00
Quincy Morgan
8dcb50579f
Replace D3 import of trivial function
2020-03-10 10:48:27 -07:00
Quincy Morgan
5d8600ff36
Remove unused zoom/pan functionality
2020-03-10 10:34:25 -07:00
Quincy Morgan
d6b723b869
Remove unused zoom/pan handler property
2020-03-09 13:12:55 -07:00
Quincy Morgan
f8f69a777a
Replace inconsistently-supported dblclick events with custom handler on platforms supporting pointer events
...
Fix issue where double-tap-to-zoom would not be properly disabled when drawing on touch devices (close #2128 )
Support adding nodes to ways with double-tap with on touch devices (close #2677 )
Support double-tap-to-zoom with styluses on touch devices
Don't accept double click/tap events if the taps are far apart
Don't re-enter modeSelect when clicking the selected feature again
2020-03-06 12:46:26 -08:00
Quincy Morgan
1147438d12
Use pointer events for map zooming and panning where supported ( close #6598 , re: #5505 )
2020-03-05 10:38:30 -08:00
Quincy Morgan
c8e9bf3de7
Account for empty string tag values in utilTagDiff (re: #7363 )
2020-02-27 15:18:31 -08:00
Bryan Housel
b12c30461b
Don't bundle the locales anymore, load first in context init
...
(re: #4994 )
2020-02-21 12:24:08 -05:00
Bryan Housel
e8f4452d49
Don't bundle the en.json strings anymore, Promisify locale loading
...
(re: #4994 )
2020-02-21 11:09:59 -05:00
Bryan Housel
ed58c8f62b
ES6ify detect.js
2020-02-21 10:42:58 -05:00
Bryan Housel
dc7fba4bf8
Have utilStringQs advance past any leading '?' or '#' characters
...
This lets us remove a bunch of substring(1) and +1 from the code.
2020-02-20 17:09:54 -05:00
Bryan Housel
503d287995
ES6ify locale.js
2020-02-20 10:26:09 -05:00