aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
Commit message (Collapse)AuthorAgeFiles
* 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
|
* Use .classList.replace() not .classList.remove() + .classList.add() for ↵Guilhem Moulin2024-01-211
| | | | button toggling.
* Fix resolution-to-zoom logic.Guilhem Moulin2024-01-201
|
* Factor out ‘resolutions’ array.Guilhem Moulin2024-01-201
| | | | | | | | And limit it to 8 meter / pixel since that's the highest resolution of Lantmäteriet's “Topografisk Webbkarta Visning, översiktlig” (open data) product. https://www.lantmateriet.se/globalassets/geodata/geodatatjanster/tb_twk_visning-oversiktlig_v1.0.3.pdf
* Hide export button in fullscreen mode.Guilhem Moulin2024-01-201
| | | | (Clicking it exits fullscreen mode, which is undesired.)
* Support layer hierarchy with arbitary depth.Guilhem Moulin2024-01-201
|
* Add accordions to the layer selection panel.Guilhem Moulin2024-01-201
|
* CSS: Improve handling of small viewports.Guilhem Moulin2024-01-191
|
* Improve handling of <iframe>.Guilhem Moulin2024-01-181
| | | | | Remove ability to click the map, and instead a button to open the map in a new tab.
* Power stations: Improve style.Guilhem Moulin2024-01-181
|
* Add features from Svenska Kraftnät.Guilhem Moulin2024-01-181
| | | | Source: https://ext-geodatakatalog-forv.lansstyrelsen.se/PlaneringsKatalogen/GetMetaDataById?id=08ec56a0-6b5c-4f83-b29e-375e6f1a34b9_C
* Fix space damage.Guilhem Moulin2024-01-181
|
* Add template for a legend dialog.Guilhem Moulin2024-01-181
|
* Populate #layer-selection-panel in JS.Guilhem Moulin2024-01-181
|
* Fix modal backdrop and pointer events.Guilhem Moulin2024-01-141
| | | | | Clicks on buttons or modal shouldn't propagate to the map. Also info-modal did not work in fullscreen mode.
* Shorten scale bar on smaller screens.Guilhem Moulin2024-01-141
|
* Add coordinates and zoom level in the hash part of the URL.Guilhem Moulin2024-01-141
| | | | This makes it possible to link to URLs showing specific locations.
* Add an example with a page containg the map in an <iframe>.Guilhem Moulin2024-01-141
|
* Fix space damage.Guilhem Moulin2024-01-141
|
* Add ability to download PNG exports.Guilhem Moulin2024-01-141
| | | | Inspired from https://openlayers.org/en/latest/examples/export-map.html .
* Replace .ariaExpanded/.ariaHidden with .setAttribute().Guilhem Moulin2024-01-131
| | | | | | The former appears not to work well with Firefox (the attribute is updated internally but the source doesn't change and the element remains unvisible).
* CSS: Make the feel more bootstrap-y.Guilhem Moulin2024-01-131
|
* Add a modal with information text.Guilhem Moulin2024-01-131
|
* Add FullScreen mode support.Guilhem Moulin2024-01-121
|
* Add more controls: a zoom slider and a scale line.Guilhem Moulin2024-01-121
|
* More CSS improvements and minor refactoring.Guilhem Moulin2024-01-121
|