aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
Commit message (Collapse)AuthorAgeFiles
* Improve wording in layer list.Guilhem Moulin4 days1
|
* Age filter dialog: Improve wording.Guilhem Moulin4 days1
|
* Rename “age” to “ts”.Guilhem Moulin4 days1
| | | | Cf. 231d64cbd14c2d1ccb6468dc9666d4433e39834c in tools.
* Add ability to filter over feature “age”.Guilhem Moulin4 days1
| | | | | Right now this is only implemented for avverk, mrr and vbk as other layers don't export the property.
* Use optional chaining operator (?.).Guilhem Moulin4 days1
| | | | | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining That simplifies the logic slightly.
* Rename #modal-info to #info-modal for consistency.Guilhem Moulin5 days1
|
* Refactor button selection logic.Guilhem Moulin5 days1
| | | | Thereby making it easier to extend if needs be.
* Popover Consolidate building of <a> tags for links.Guilhem Moulin5 days1
|
* Consolidate comparison with undefined/null.Guilhem Moulin5 days1
| | | | | | | | | | Replace `a === undefined || a === null` resp. `a !== undefined && a !== null` with `a == null` resp. `a != null`. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality . Relax also some `=== undefined` and `=== null` into `== null` when that makes sense.
* Feature fetch: Never pass “fid:undefined” when querying the CGI.Guilhem Moulin5 days1
|
* JS: Minor refactorining of the OL layer creation logic.Guilhem Moulin6 days1
| | | | | Also, don't define a projection for raster layers and let OL get it from the source's metadata instead.
* info-modal: Don't crash for layers with unknown sources or URLs.Guilhem Moulin6 days1
|
* Add a dynamic legend.Guilhem Moulin7 days1
| | | | (Long overdue…)
* typofixGuilhem Moulin7 days1
|
* Fix layer names.Guilhem Moulin7 days1
| | | | Regression from 8d03e7794dae3696b0a975477542a4db03136ab7.
* Add two more nature value layers.Guilhem Moulin7 days1
|
* JS: Refactor layer creation.Guilhem Moulin7 days1
|
* Rename layers for consistency with what's produced by the tooling.Guilhem Moulin7 days1
|
* Add (WIP) WebGL layer for kontinuitetsskog.Guilhem Moulin7 days1
| | | | | We rename “vectorLayers” to “mapLayers” as it now contains a raster layer.
* Add some nature value layers.Guilhem Moulin7 days1
|
* typofixGuilhem Moulin8 days1
|
* Make stroke thinner for layers where the typical geometry is small.Guilhem Moulin8 days1
|
* Move Naturvårdsavtal under Skyddad Natur.Guilhem Moulin8 days1
| | | | | | For consistency with Skogsstyrelsens map at https://skogsstyrelsen.se/e-tjanster-och-kartor/karttjanster/skogens-karta/ and https://gisportal.skogsstyrelsen.se/portal/apps/experiencebuilder/experience/?id=0ad7cc88ca6c4f4da49d60bf59a54d1c .
* Show SvK layers above VBK's.Guilhem Moulin10 days1
|
* MRR: Fix expiration date for exploration permits.Guilhem Moulin10 days1
| | | | Regression from a5b50cb095c1e63e13beedc6f370932a6cbb56a3.
* JS: Don't redirect an empty `layers=` parameter to the default layer selection.Guilhem Moulin10 days1
|
* Update default view.Guilhem Moulin10 days1
| | | | | | | | | Use Lantmäteriet's 'topowebb_nedtonad' basemap, and show some layers. This is more or less what's being linked to at https://www.klimatanalysnorr.se/kartor-2/ . For existing links to the old non-hierarchical names, we simply use the default view instead of trying to map layer names to the new ones.
* Change layer group/name separator to ‘.’ from ‘_’.Guilhem Moulin10 days1
| | | | The former better indicates hierarchy.
* Add layers for offshore wind farms.Guilhem Moulin10 days1
| | | | | Colors and tooltips inspired from https://vbk.lansstyrelsen.se/ (like for other VBK layers).
* JS: Replace some `let`s with `const`s.Guilhem Moulin10 days1
|
* Improve wording for VBK layer descriptions.Guilhem Moulin10 days1
|
* Info dialog: Change icon from clock to map.Guilhem Moulin10 days1
|
* info-modal: Fetch source copyright and mtime remotely from metadata.json.Guilhem Moulin11 days1
| | | | | | | | | Source URL and copyright information are now defined tools' config.yml. This change exposes MVT creation time as well as source mtime to the info modal. See 052536f62d2e58f6b9b142e035c49cb033458d7f in tools for the generation logic behind metadata.json.
* info modal: Workaround for boostrap bug #41005.Guilhem Moulin11 days1
| | | | Bug: https://github.com/twbs/bootstrap/issues/41005#issuecomment-2585390544
* MRR: Drop export_date field.Guilhem Moulin11 days1
| | | | Cf. 06adefab34f5a73fc3ae7f587c875dfb353eccfd in tools.
* JS Fetch API: Don't try to decode JSON if the status code isn't 200.Guilhem Moulin2025-05-271
|
* Tighten split() limit argument.Guilhem Moulin2025-05-271
|
* Popover: Dynamically generate HTML from properties.Guilhem Moulin2025-05-271
| | | | There is no need to pre-generate and cache the HTML for all features.
* Gray out a detached popover before recyling it.Guilhem Moulin2025-05-271
|
* Dispose popover when (un)selecting layers.Guilhem Moulin2025-05-271
|
* Overlay: Get an array of feature properties from the CGI.Guilhem Moulin2025-05-271
| | | | | | | | | | | | | Rather than an array GeoJSON objects. The Web Application doesn't need the original full/non-simplified geometry. After all, OpenLayers has fetched the tiles already and the (visible part of) the geometry is already cached in the target SRS with sensible simplification factors. So there is really no need to transfer megabytes of high-precison data to the client to highlight the feature. This changes means that CGI responses will remain small hence can be buffered.
* Rename GeomArea resp. GeomLength properties to geom_area resp. geom_length.Guilhem Moulin2025-05-251
|
* Batch requests to CGI.Guilhem Moulin2025-05-251
| | | | Cf. 527fdfd1e46d66007758861dd0decf9c03043d0a in tools.
* Adjust SKS layer popovers to current schema.Guilhem Moulin2025-05-231
| | | | Cf. 990978c7403ca58956c131dc7992ff113ea04ea6 in tools.
* Adjust MRR layer popovers to current schema.Guilhem Moulin2025-05-231
| | | | Cf. 981a97c572ee064b4f3ade5d1fc9e5c4397701ff in tools.
* Adjust to new MVT backend.Guilhem Moulin2025-05-231
| | | | | | | We now query a CGI to retrieve feature properties and full geometries (as GeoJSON). This partially reverts commit 1c0748176997d2e915faae3c6fcf5634f4fb0582.
* Add layers for Riksintressen, naturvård och friluftsliv.Guilhem Moulin2024-10-201
|
* Add layers for Naturvårdsregistret and Naturvårdsavtal.Guilhem Moulin2024-10-201
|
* Adjust to new backend.Guilhem Moulin2024-10-201
| | | | | | | | | Account for changes in the tooling: - Use multiple vector layers and a metadata.json manifest; - Automatically reload the manifest after 6h so we don't miss updates; - Fetch feature properties from separate attribute files; and - Use the original feature geometry as overlay to avoid clipping.
* Add ability to maximize popovers.Guilhem Moulin2024-05-301
|