Martin Raifer
342a03bcfe
allow type/id syntax in id hash param, and add support for notes
2024-05-28 20:18:53 +02:00
Martin Raifer
211b6dde5f
upgrade to eslintv9 (config format, lint to updated rules)
2024-04-12 18:44:04 +02:00
Martin Raifer
73773b61f1
Fix context "edit" menu on touchscreens
...
* render labels properly, fixes #9425
* always open the touch-specific edit menu (the contextmenu event is always triggered by the browser on long presses, where we need to make sure that this event doesn't override the `isTouchMenu` property of the edit menu)
2023-01-19 18:27:02 +01:00
Martin Raifer
41aa127d23
reduce use of parseFloat
...
as it silently strips non-numeric suffixes (e.g. a value of "123 foo" is transformed into a numeric value of 123 by `parseFloat`, which is typically not what we desire)
2022-11-24 19:39:15 +01:00
Martin Raifer
e8ceba1107
only use long-press context menu behavior on touch/stylus inputs
...
closes #8105
2022-10-14 13:02:15 +02:00
Martin Raifer
8076f6f2fe
fix opening of context menu when pressing context menu key
2022-10-14 12:46:44 +02:00
Martin Raifer
6f5a195188
drop console.log
2022-07-19 13:12:39 +02:00
Martin Raifer
6526d655f6
further tweak and add tests for last map location restore
...
see #9146
2022-07-19 13:04:44 +02:00
Martin Raifer
67c65887b6
simplify map location restore, see #9146
2022-07-19 12:02:03 +02:00
Martin Raifer
981628bfd1
Merge remote-tracking branch 'bvercelli99/remember-location-hash' into develop
2022-07-19 11:31:33 +02:00
Martin Raifer
ac77289b4d
refactor localized text rendering in tooltips, flash messages
2022-06-23 18:55:57 +02:00
Brian Vercelli
a369a9412a
fixing eslint issues
2022-06-03 16:04:12 -07:00
Brian Vercelli
cab5dfe861
added local storage for map hash, will now load last used map hash for user on map init
2022-06-03 14:24:57 -07:00
Martin Raifer
ad67f81cfd
code quality improvements (unused vars, duplicate css selectors, etc.) ( #8965 )
...
* mark function parameter as currently unused
* refactor some unused function parameters
* consolidate some css selectors
2022-02-07 15:30:53 +01:00
Martin Raifer
040257fd44
replace unnecessary setting of raw "html" with "text"
2021-11-18 18:53:33 +01:00
Minh Nguyễn
3ea58a3620
Consider unsaved vertices when following a way
2021-10-27 19:12:18 -07:00
John Firebaugh
3e082bb20e
Fix typos
2021-10-24 11:01:44 -07:00
Minh Nguyễn
3e42e6adfa
Copyedited error messages for Follow operation
2021-10-14 15:29:47 -07:00
Kyle Hensel
c9faf072e6
create 'follow' feature for drawing ways
2021-10-05 13:42:42 +13:00
Quincy Morgan
655c3a692c
Enable dragging the map during feature move and selection without exiting the mode ( close #8187 )
2020-12-03 15:05:19 -05:00
Quincy Morgan
2dd0b8449f
Rewrite some confusing nested ternaries ( close #8117 )
2020-12-03 12:18:39 -05:00
Quincy Morgan
ba48a861bc
Enable curly and block-spacing eslint rules
2020-11-10 14:19:11 -05:00
Quincy Morgan
6d7ec5d14e
Fix issue with snapping to ways/nodes when drawing
2020-10-26 15:54:25 -04:00
Quincy Morgan
315ab27997
Fix issue with context menu key
2020-10-26 15:12:18 -04:00
Quincy Morgan
380473033b
Enable no-duplicate-imports eslint rule
2020-10-23 12:02:37 -04:00
Quincy Morgan
21a49bbec8
Initial support for D3 v6.2.0
2020-10-06 15:08:39 -04:00
Quincy Morgan
0b28648e6d
Add plural form support for multiselection page title ( close #8026 )
2020-09-27 18:42:27 -04:00
Quincy Morgan
74f473f5a5
Fix issue where currently drawn feature could be discarded when switching the background while navigating the map ( close #7999 )
2020-09-25 15:19:18 -04:00
Quincy Morgan
8883c2f36d
Fix uiFlash issues
...
Clean up a few things from prior commit
2020-09-22 12:19:54 -04:00
Quincy Morgan
abf75bdd98
Don't use HTML on page title
2020-09-16 08:40:02 -04:00
Quincy Morgan
295c53810f
Fix issue where text could not be copied while a feature was selected ( close #7908 )
2020-09-04 10:49:02 -04:00
Quincy Morgan
7920f269c0
Fix issue where node could not be dragged after long-clicking if something else was already selected ( close #7826 )
2020-09-03 09:57:55 -04:00
Quincy Morgan
6521184cf3
Properly use the "Continued an area" annotation for the second vertex in an area instead of "Started an area" (re: #7772 )
2020-09-02 11:08:06 -04:00
Quincy Morgan
a1987e21d9
Fix issue where undoing the second-to-first vertex of a way when drawing would undo to the initial state of the way ( close #7772 )
2020-09-02 11:07:09 -04:00
Peter Newman
4205ca1d07
Fix the seemingly safe spellings found by codespell
...
Untested, only checked by inspection.
(cherry picked from commit 2c47a11008 )
2020-08-10 17:32:37 +01:00
Quincy Morgan
5491163616
Remove hover upon pointercancel
2020-07-06 16:31:11 -04:00
Quincy Morgan
f08a9fdfb4
Close the edit menu if a pointer goes down in the map
2020-06-30 12:07:06 -04:00
Quincy Morgan
24638fe8e4
Disable node lasso selection when zoomed out (re: #7728 )
2020-06-25 14:28:02 -04:00
Quincy Morgan
d441c5b0c6
Flash operation annotation when tapping buttons with touch or stylus (re: #7699 )
2020-06-25 11:21:23 -04:00
Quincy Morgan
13f807043c
Disable lasso multiselection for disabled OSM data ( close #7728 )
2020-06-23 15:18:52 -04:00
Quincy Morgan
cc5da9b9c3
Add endpoints to customize or disable iD's changing of the document title ( close #7503 )
...
Use the initial title as the default base title
2020-06-10 15:47:41 -04:00
Quincy Morgan
0cd1b40c57
Make sure clicking the first node finishes drawing when drawing any closed way
2020-06-02 16:57:14 -04:00
Quincy Morgan
5eb0fc3e0e
Update comments
2020-06-02 15:58:35 -04:00
Quincy Morgan
1d377227d0
Enable dual-pointer multiselection even if neither feature is selected yet
...
Don't do dual-pointer multiselection if a pointer has moved too much since it went down
Properly switch the selection when right-clicking on an unselected feature during a multiselection
2020-06-02 15:44:58 -04:00
Quincy Morgan
64096cbc67
Handle pointercancel events in behaviorDrag
2020-05-28 14:21:22 -04:00
Quincy Morgan
717f9ae5b7
Fix prior commit and add additional safety checks
2020-05-28 14:12:11 -04:00
Quincy Morgan
1214b2d5dd
Preview the draw segment upon pointerdown on touchscreens unless it becomes invalid
...
Block creation of invalid geometries due to connecting to invalid sibling segments or nodes on the drawn way on touchscreens
2020-05-28 13:50:51 -04:00
Quincy Morgan
2264e4a6d7
Fix code tests
2020-05-28 11:45:49 -04:00
Quincy Morgan
79ceb96758
Fix several regressions to behaviorHover introduced in 38db23fab5
2020-05-28 11:33:47 -04:00
Quincy Morgan
d8443d28d5
Detect and ignore erroneous mouse-type pointermove events sent after pointerup events on iOS when drawing
2020-05-28 11:13:09 -04:00