Commit Graph

13 Commits

Author SHA1 Message Date
Martin Raifer
aa96a67c65 use lodash-es everywhere, replace custom clamp methods with lodash 2025-04-21 14:43:35 +02:00
Martin Raifer
c6ad3e9a33 drop unneeded duplicate test; lint code 2025-03-21 17:58:22 +01:00
dragoon
e6c379053e fix coordinate search with / symbol (#10879) 2025-03-14 19:31:04 +01:00
Martin Raifer
607f953465 add alternative formats for coordinate search: (#10805)
* zoom/x/y – copy/paste from an osm.org URL or web map with map-hash param (this also sets map zoom to the respective value)
* x/y – like the above, but does not set zoom level
* x y – where x and y are numbers in the user's locale's number format
2025-03-11 21:20:21 +01:00
NaVis0mple
01d650d450 Expand DMS format and fix sec rounding logic (#10066)
Most DMS format parsed by @mapbox/sexagesimal, 
add a expandable matcher and two new formats for coordinates in DMS format in search bar

example: `35 11 10.1 , 136 49 53.8` (D M SS format), or `35 11.168 , 136 49.896` (D MM format)
2024-02-02 15:26:47 +01: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
Bryan Housel
1dbf273878 Remove flow
https://github.com/openstreetmap/iD/issues/3744#issuecomment-374950519
2018-03-22 16:51:53 -04:00
Bryan Housel
8dd7fa611e Merge branch '3744' of https://github.com/Psigio/iD into Psigio-3744 2018-03-03 22:12:36 -05:00
Bryan Housel
668c17ad1e Do not localize decimalCoordinatePair appearing in info panels
(closes #4765)
2018-03-02 00:21:24 -05:00
Jon D
8655ec6baf Start adding flow annotations, plus updates to build and linting processes to support 2018-02-25 15:44:41 +00:00
Minh Nguyễn
702e3d2a90 DMS coordinates 2018-01-09 03:25:55 -08:00
Minh Nguyễn
fe8c218fb3 Localized geocoded coordinate formatting 2018-01-09 02:24:03 -08:00
Minh Nguyễn
a1e0d4fc08 Consolidated unit formatting into util module 2018-01-09 02:00:44 -08:00