34 Commits

Author SHA1 Message Date
Martin Raifer
6626ea0682 refactor panels to not inject html 2022-06-24 12:19:17 +02:00
Martin Raifer
9f3f8e1366 rename method 2021-11-29 19:26:18 +01:00
Martin Raifer
d78c357588 replace raw html injection of localized texts
by using d3 to insert the localized text spans directly into the DOM
2021-11-26 18:51:45 +01:00
Martin Raifer
b5fdb145f5 add more explicit html formatting of translated texts 2021-11-19 12:23:45 +01:00
Martin Raifer
040257fd44 replace unnecessary setting of raw "html" with "text" 2021-11-18 18:53:33 +01:00
Josh Lee
ac6251cf9e Fix centroid calculation in measurement panel.
Copy/paste of 0a0e2dcf75
2021-02-23 18:11:02 +00:00
Quincy Morgan
ba4c1ef014 Account for instances where d3.geoCentroid returns incorrect results 2020-10-29 14:28:21 -04:00
Quincy Morgan
8b6ad03a58 Fix issue where switching between metric/imperial measurements wouldn't work 2020-10-28 15:16:38 -04:00
Quincy Morgan
21a49bbec8 Initial support for D3 v6.2.0 2020-10-06 15:08:39 -04:00
Quincy Morgan
e50b096279 Show distance in measurement panel when two nodes are selected (close #7952) 2020-09-28 16:22:42 -04:00
Quincy Morgan
4600ab596f Add lang attribute to more display labels (re: #7963) 2020-09-23 10:10:24 -04:00
Quincy Morgan
b92f0a6d09 Fix styling issue in panels
Add lang attribute to more text (re: #7963)
2020-09-22 15:11:12 -04:00
Quincy Morgan
5435082d9c Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan
32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan
295a50456a Don't cache locale info in measurement panel 2020-09-15 11:35:11 -04:00
Quincy Morgan
a1c2b7f73d Support language-specific pluralization (re: #597, #4964) 2020-09-14 17:21:00 -04:00
Quincy Morgan
a7e16a5625 Show the number of unique nodes instead of the aggregate for the selection in the measurement panel (re: #7329) 2020-06-08 17:07:26 -04:00
Quincy Morgan
2f2e0dcb94 Show combined length, area, and node count in the measurement panel for multiselections (close #7329) 2020-06-08 16:47:03 -04: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
76e0d13729 Remove lodash every and filter
(re: #6087)
2019-03-23 01:22:56 -04:00
Bryan Housel
fab4a54c14 Redraw measurement and history panels on context mode enter
- these panel content were redrawn whenever the map was redrawn,
however the map does not necessarily redraw when selecting notes
2018-08-10 22:20:46 -04:00
Bryan Housel
9f33ca9a01 Show location of selected Note in Measurement Panel
(re: #5158)
2018-08-09 23:25:50 -04:00
Minh Nguyễn
ea7339f49a Fixed geometry type word order
In many languages, the word for “closed” would follow the word for “line” or “area”, not precede it. Additionally, the word for “closed” may differ depending on what it modifies.
2018-01-09 03:30:14 -08:00
Minh Nguyễn
702e3d2a90 DMS coordinates 2018-01-09 03:25:55 -08:00
Minh Nguyễn
a1e0d4fc08 Consolidated unit formatting into util module 2018-01-09 02:00:44 -08:00
Minh Nguyễn
d75aa7d04a Internationalized measurement panel 2018-01-09 00:58:58 -08:00
Wille Marcel
9f1b928f89 add number of nodes information to measurement panel 2018-01-02 10:45:44 -03:00
Bryan Housel
18ab596f58 Improve int'l date/time strings on imagery and history tools
(closes #4594)
2017-12-06 15:27:54 -05:00
Bryan Housel
31aec5743c Convert lodah-es and d3 to named imports for ui/panels 2017-09-26 00:41:15 -04:00
Bryan Housel
20c2de4701 Always display coordinate pairs as Lat,Lng (sorry @tmcw) 2017-07-05 20:34:07 -04:00
Bryan Housel
3043323ba9 Rename infobox to info-panels 2017-07-04 02:14:30 -04:00
Bryan Housel
f72d5cb988 Remove unused code (infobox isn't classed show/hide anymore) 2017-07-04 01:22:41 -04:00
Bryan Housel
39621f99fa Add a show/hide tiles toggle button, position buttons relatively 2017-07-03 11:24:39 -04:00
Bryan Housel
92a057bf3c git mv modules/ui/info -> modules/ui/panels 2017-06-29 23:05:14 -04:00