aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
Commit message (Collapse)AuthorAgeFiles
* info-modal: Fetch source copyright and mtime remotely from metadata.json.Guilhem Moulin10 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 Moulin10 days1
| | | | Bug: https://github.com/twbs/bootstrap/issues/41005#issuecomment-2585390544
* MRR: Drop export_date field.Guilhem Moulin10 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
|
* Don't re-attach open popovers when clicking on a feature.Guilhem Moulin2024-05-301
| | | | | Once an open popover is detached, keep it detached until it is closed. That's also the behavior of https://apps.sgu.se/kartvisare/kartvisare-mineralrattigheter.html .
* Improve comments.Guilhem Moulin2024-05-201
|
* CSS: Improve rules for mobile devices.Guilhem Moulin2024-02-021
| | | | Place control icons in a row near the top.
* CSS: Improve rules for mobile devices.Guilhem Moulin2024-01-311
|
* typofixGuilhem Moulin2024-01-311
|
* Add layer for gigafactories (own drawing).Guilhem Moulin2024-01-311
|
* Add layer for dams (from SMHI).Guilhem Moulin2024-01-311
|
* Move some layers into a dedicated MVT container.Guilhem Moulin2024-01-311
| | | | | | | | | | The SKS and ST layers are much larger than the rest, there are tons of features which cover almost of the territory. They therefore take longer to download. As they are insible by default, it makes sense to factor them out to speed up the rest. This is just a PoC for now, we'll need to refator later and posibly use a separate layer for each of SvK, SGU, VBK, SKS, ST, etc.
* Fix VectorTile URL.Guilhem Moulin2024-01-311
|
* Add layer for forestry (from Skogsstyrelsen).Guilhem Moulin2024-01-311
|
* Add layer for Rennäringen (from Sametinget).Guilhem Moulin2024-01-301
|
* Fix SvK's z-index.Guilhem Moulin2024-01-301
|
* Add blank lines.Guilhem Moulin2024-01-301
|
* Add windmill layers (from LST Vindbrukskollen).Guilhem Moulin2024-01-301
|
* Mineralrättigheter: Remove unused fields from popover.Guilhem Moulin2024-01-301
|
* Factor out unit formating in popover.Guilhem Moulin2024-01-291
|
* Add “mineral rights” layers (from SGU).Guilhem Moulin2024-01-291
|
* Improve style for SvK stations.Guilhem Moulin2024-01-291
|
* Improve dash style for SvK's transmissionsnätsprojekt.Guilhem Moulin2024-01-291
|
* Add SVK's transmissionsnätsprojekt.Guilhem Moulin2024-01-291
| | | | From https://www.svk.se/utveckling-av-kraftsystemet/transmissionsnatet/transmissionsnatsprojekt/
* Put layer names in location hash.Guilhem Moulin2024-01-281
|
* Put basemap name in location hash.Guilhem Moulin2024-01-281
|
* Set ‘aria-label’ attribute on <button>s to their ‘title’ attribute ↵Guilhem Moulin2024-01-221
| | | | value.
* Highlight features shown in popover.Guilhem Moulin2024-01-221
|
* map.forEachFeatureAtPixel(): Add a layerFilter.Guilhem Moulin2024-01-221
|
* Fix space damage.Guilhem Moulin2024-01-221
|
* Fix popover absolute placement after unanchoring.Guilhem Moulin2024-01-221
| | | | | | We need to place it under .ol-overlaycontainer-stopevent. Unfortunately this messes its positions upon entering fullscreen, so we dispose it instead.
* Add ability to grab and move popovers.Guilhem Moulin2024-01-221
|
* VectorTile: Don't filter MVT layers.Guilhem Moulin2024-01-221
| | | | | We're only exporting the layers of interest, no need for any further client-side filtering.
* Fix space damage.Guilhem Moulin2024-01-221
|
* Show feature properties on popover via singleclick on map.Guilhem Moulin2024-01-221
| | | | | We use bootstrap's Popover for that: https://getbootstrap.com/docs/5.3/components/popovers/#options
* Fix minor JS styling issues.Guilhem Moulin2024-01-211
|