48 Commits

Author SHA1 Message Date
Martin Raifer
fa91fe7c0d fix zoom resetting wrongly when switching background mid-transition
see https://github.com/openstreetmap/iD/issues/10700#issuecomment-2832010049
2025-04-26 21:10:16 +02:00
Marwin Hochfelsner
a5b9479429 Change zoomToNote to moveToNote (#10819) 2025-02-28 09:57:13 +01:00
Kyle Hensel
90c4241723 fix dependency cycle caused by utilDisplayLabel importing presetManager 2024-08-24 11:34:46 +10:00
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
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
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
Quincy Morgan
380473033b Enable no-duplicate-imports eslint rule 2020-10-23 12:02:37 -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
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
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
d7e5aa6735 Keep track of the initial hash parameters through multiple loads of the UI (close #7504) 2020-04-14 14:03:18 -07:00
Quincy Morgan
417caba3be Fix issue where hashtags set in URL parameter would not be honored 2020-04-14 12:25:18 -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
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
21f8404deb Show change count in document title (close #6209)
Make title format translatable
Don't show lat/lon location in title
Select corresponding features upon hash change
2020-03-24 10:17:46 -07:00
Quincy Morgan
f0cb8ffb25 Merge branch 'develop' into fix-history 2020-03-23 14:12:14 -07: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
Katarzyna Król
316872ef59 map location in title 2020-01-15 02:42:50 +01:00
Katarzyna Król
6286d1430f fix titles - single quotes 2020-01-15 01:50:07 +01:00
Katarzyna Król
91b67277bd update document title 2020-01-14 18:47:19 +01:00
Quincy Morgan
eb49a367b4 Don't reuse changeset comment, sources, and hashtags from prior uploads (close #6642, re: #6279) 2019-07-22 16:12:20 -04:00
Quincy Morgan
d01bb78707 Reduce circular dependencies caused by importing from indexes, the location of the validation models, and the location of areaKeys (close #6237) 2019-04-24 13:45:59 -07:00
Bryan Housel
4821bf0a68 Remove lodash omit
(re: #6087)
2019-03-26 14:12:45 -04:00
Bryan Housel
11bfeaabfc Add browser-polyfills, remove lodash assign, compact, values
(re: #6087)
2019-03-22 17:14:41 -04:00
Bryan Housel
152022aec4 Use context.keybinding for keybindings that don't change
(closes #5487)
2018-11-13 20:57:21 -05:00
Bryan Housel
61c7f64077 Remember changeset source, make it settable via url param
(closes #4899)
2018-03-16 09:20:32 -04:00
Bryan Housel
75d2c45fd6 Convert lodah-es and d3 to named imports for behaviors 2017-09-24 21:43:54 -04:00
Bryan Housel
a42aa789e9 Add hashtags API parameter and localStorage
(closes #2834)
2017-08-16 10:47:17 -04:00
Bryan Housel
163323d3df Make sure bool url params actually contain value 'true'
(closes #4222)
2017-08-08 09:51:57 -04:00
Bryan Housel
6ca649498f Add walkthrough=true url parameter to auto-start the walkthrough
(closes #4111)
2017-06-22 22:26:38 -04:00
Bryan Housel
e9568e8845 Don't exit drawing mode on hashchange unless the user has moved a lot
(Switching background while drawing a line was causing the line to get
cancelled because of returning to browse mode)
(closes #4099)
2017-06-12 02:04:22 -04:00
Bryan Housel
a18d690dd5 Don't let window.location changes happen during draw modes
(closes #3996)
2017-05-03 17:15:35 -04:00
Bryan Housel
a5554cf3b0 Expire saved changeset comment older than 2 days
(closes #3947)
2017-04-21 23:01:32 -04:00
Bryan Housel
31d2733c2a Remove unused mode variable - eslint 2017-03-22 02:51:47 -04:00
Bryan Housel
d664f74832 When changing selection, always update the url hash 2017-03-21 14:20:25 -04:00
Bryan Housel
af3db7ea36 Swap url hash map order to zoom/latitude/longitude
(closes #3554)
2016-11-10 09:56:20 -05:00
Bryan Housel
1c3e778baf Check for rtl url parameter for testing (rather than regex) 2016-10-08 12:45:01 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Tom MacWright
cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Tom MacWright
604d1e2719 import lodash (#3257) 2016-07-19 12:04:16 -04:00
Kushan Joshi
39c82af158 Sort modules [eslint rule] 2016-07-06 12:12:08 +05:30
Kushan Joshi
0939983515 external modules for behavior 2016-06-22 12:34:43 +05:30
Kushan Joshi
14f0d95e94 modularize iD.behavior 2016-06-17 12:53:19 +05:30