aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFiles
* Add popover data for biosphere area.HEADmasterGuilhem Moulin4 days1
| | | | Regression from 670bba058d83620abdb3e8db5fd4ea89dba08142.
* Measurement panel: Improve style.Guilhem Moulin2025-06-202
| | | | | In particular, use `border-radius: var(--bs-border-radius-lg)` for consistency with the radio buttons above.
* Minor refactoring.Guilhem Moulin2025-06-201
| | | | Scope some variables tighter.
* Measurement panel: Improve style.Guilhem Moulin2025-06-201
|
* Add a closing button to the measurement panel.Guilhem Moulin2025-06-202
| | | | | It can be confusing that one had to click on the ruler icon to go back to the normal mode where one can select features.
* wordingGuilhem Moulin2025-06-201
|
* Increase font size for measurement results.Guilhem Moulin2025-06-202
| | | | | | | And ensure it overflows on the left. (It's right-aligned and there is room for 10⁶ km² with one decimal which is way more than likely needed, but we don't want any overflow to push the unit to the right side of the box.)
* import fontsource's CSS from style.css not main.js.Guilhem Moulin2025-06-193
|
* Run `npm update --save`.Guilhem Moulin2025-06-191
|
* Don't make assumptions about Object.values() ordering.Guilhem Moulin2025-06-191
|
* Add panel to measure lengths and areas.Guilhem Moulin2025-06-195
| | | | | | | | Inspired from https://openlayers.org/en/latest/examples/measure.html and https://openlayers.org/en/latest/examples/draw-features.html . We use the Inter font https://rsms.me/inter/ for the measurement value as it has good support for tabular-nums.
* wibbleGuilhem Moulin2025-06-191
|
* Popover: Refactor area/length formatting.Guilhem Moulin2025-06-191
|
* Use a regular no-break space U+00A0 as unit separator.Guilhem Moulin2025-06-191
| | | | | Instead of the narrow no-break space U+202F. It appears the former is typographically correct.
* Factor out locale.Guilhem Moulin2025-06-191
|
* VBK: Rename layers station_* to turbine_*.Guilhem Moulin2025-06-171
| | | | Cf. 00aad33fcbe8e76700282fae2f8057ccd01904b1 in tools.
* Add comment.Guilhem Moulin2025-06-171
|
* Make LAYERS object hierarchical.Guilhem Moulin2025-06-171
| | | | | | | | (First the MVT basename, then feature layernames.) More refactoring (such as consolidation of LAYERS/STYLES/mapLayers) would be nice, but not worth doing at the moment since we're planing to switch to WebGL rendering once https://github.com/openlayers/openlayers/issues/15807 and https://github.com/openlayers/openlayers/issues/16246 are fixed.
* Enable strict mode on main.js.Guilhem Moulin2025-06-171
|
* Bump copyright years.Guilhem Moulin2025-06-171
|
* ESLint: silence css/no-invalid-properties.Guilhem Moulin2025-06-171
| | | | | | | | | | | | | It appears var() validation from https://github.com/eslint/css/pull/148 doesn't look if the variable have been defined in the sourced .css files, yielding many false positive 68:30 error Can't validate with unknown variable '--bs-body-bg-rgb' css/no-invalid-properties 69:22 error Can't validate with unknown variable '--bs-modal-border-radius' css/no-invalid-properties […] So we disable these rules for now. (According to the PR, property values containing var() were skipped prior to v0.9.0.)
* Upgrade eslint to 9.29.x.Guilhem Moulin2025-06-172
|
* Upgrade vite to 6.3.x.Guilhem Moulin2025-06-172
|
* Upgrade OpenLayers to 10.6.x.Guilhem Moulin2025-06-172
|
* Add comments.Guilhem Moulin2025-06-171
|
* Setup a timeout to adjust the time filter at midnight.Guilhem Moulin2025-06-151
| | | | | | | We use usual integer comparison against the feature's timestamp internally, so for relative filters we need to adjust boundaries at midnight. The help text needs updating too if the modal is open and the relative dialog checked.
* Seal popover fields.Guilhem Moulin2025-06-151
|
* Undo splitting out to multiple files.Guilhem Moulin2025-06-155
| | | | | | | | | | | | The reason is that we want the different modules to produce side-effects (to avoid creating functions and keeping references to it) and we therefore need to control the order in which they are inlined during `vite build`. Unfortunately this doesn't seem to be possible right now, cf. https://github.com/storybookjs/storybook/issues/30768 . This reverts commits 670bba058d83620abdb3e8db5fd4ea89dba08142, 05a018f27aba3a20fd581cb88daa8afbbd3407de and 0fc7bdd8bf374c36fa0ba27702d1fafed09277ac.
* Factor out map setup into separate file.Guilhem Moulin2025-06-153
| | | | | | This allows importing `map` in other modules, thereby eliminating the need for creating and exporting functions that would be called only once.
* Minor refactoring.Guilhem Moulin2025-06-151
|
* vite configuration: aliases to absolute files.Guilhem Moulin2025-06-151
| | | | | | This avoids the following warning: [vite] warning: rewrote […] to node_modules/[…] but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.
* Dispose popover/overlay when opening the age filter dialog.Guilhem Moulin2025-06-151
| | | | | We might filter away the feature currently selected so it makes sense to clear the feature list first.
* Move example files to a separate directory.Guilhem Moulin2025-06-152
|
* Improve comments.Guilhem Moulin2025-06-151
|
* Refactor popover field definitions.Guilhem Moulin2025-06-151
|
* Shuffle VBK vindkraftverk layers around.Guilhem Moulin2025-06-151
| | | | To match the ordering from https://vbk.lansstyrelsen.se/ .
* CSS: Improve style for maximized popovers.Guilhem Moulin2025-06-152
| | | | | In particular, fix a bug where not the entire height was used for the popover body.
* ESLint configuration: Fix source path globs.Guilhem Moulin2025-06-151
| | | | We don't want to lint anything under ./dist/, for instance.
* Refactor popover handling.Guilhem Moulin2025-06-152
| | | | | In particular, make the definition object hierarchical and rename its fields.
* Popover: Set 'grabbing-area-grabbed' class on the right element.Guilhem Moulin2025-06-131
|
* Factor out Popover handling into separate module.Guilhem Moulin2025-06-123
|
* ESLint: Prettify configuration file.Guilhem Moulin2025-06-121
|
* ESLint: Silence CSS warnings and errors.Guilhem Moulin2025-06-122
|
* ESLint: Fix no-loss-of-precision error.Guilhem Moulin2025-06-121
| | | | Fixes: https://eslint.org/docs/latest/rules/no-loss-of-precision
* ESLint: Remove unused variables.Guilhem Moulin2025-06-122
| | | | And also fix `isVisible()` along the way.
* ESLint: Remove useless escapes.Guilhem Moulin2025-06-121
|
* Move *.css files to ./src.Guilhem Moulin2025-06-123
|
* ESLint: Remove unused imports.Guilhem Moulin2025-06-121
|
* Add a `lint` script to npm's package.json.Guilhem Moulin2025-06-121
| | | | To be used with `npm run lint`.
* Install ESLint in dev mode.Guilhem Moulin2025-06-123
| | | | Using `npm init @eslint/config@latest`.