diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-05-20 00:34:43 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-05-20 00:34:43 +0200 |
commit | 809b7cbeb43c5a9c94d68af9884074fc70cb38c5 (patch) | |
tree | 037c368efae73051e7d98cab63c2cdb22dec7f29 | |
parent | b2e9dfc6f391dd1099428e0935c3ee58cf2ae3fd (diff) |
Improve comments.
-rw-r--r-- | main.js | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -58,34 +58,34 @@ registerProjection(proj4); const projection = getProjection('EPSG:3006'); -/* Lantmäteriet uses a tile-scheme where the origin (top-left corner) is - * at N8500000 E-1200000 (SWEREF99 TM), where each tile is 256x256 - * pixels, and where the resolution at level 0 is 4096m per pixel - * (each side is 1048.576km long). +/* Lantmäteriet uses a tile-scheme where the origin (upper-left corner) is at + * N8500000 E-1200000 (SWEREF99 TM), where each tile is 256×256 pixels, and where + * the resolution at level 0 is 4096m per pixel (each side is 1048.576km long). * * https://www.lantmateriet.se/globalassets/geodata/geodatatjanster/tb_twk_visning_cache_v1.1.0.pdf * https://www.lantmateriet.se/globalassets/geodata/geodatatjanster/tb_twk_visning-oversiktlig_v1.0.3.pdf * - * We set the extent to a 4x4 tiles square at level 2 (1024px = - * 1048.576km per side) somehow centered on Norrbotten and Västerbotten, - * and zoom in from there. This represent a TILEROW (x) offset of 5, - * and a TILECOL (y) offset of 2. + * We set the extent to a 4×4 tiles square at level 2 (1024px = 1048.576km per + * side) somehow centered on Norrbotten and Västerbotten, and zoom in from there. + * This represent a TILEROW (x) offset of 5, and a TILECOL (y) offset of 2. */ const extent = [110720, 6927136, 1159296, 7975712]; -/* XXX using the topowebbcache WMTS is fine for testing (as it - * doesn't require authentication) but not in production in a public - * instance as doing so would violate its current terms of use (as - * of January 2024 it's not CC0 open data). See +/* XXX using the topowebbcache WMTS is fine for testing (as it doesn't require + * authentication) but not in production in a public instance as doing so would + * violate its current terms of use (as of January 2024 it's not CC0 open data). + * See * * https://www.lantmateriet.se/sv/om-lantmateriet/Rattsinformation/upphovsratt-och-publicering-av-lantmateriets-geografiska-information/ * https://www.lantmateriet.se/sv/kartor/vara-karttjanster/min-karta/#anchor-2 * https://help.locusmap.eu/topic/support-for-swedish-lantmateriets-min-karta-wms * - * More precise background maps might be available in the future - * as open data, though: + * More precise background maps might be available in the future as open data, + * though: * - * https://www.lantmateriet.se/sv/om-lantmateriet/press/nyheter/lantmateriets-arbete-mot-oppna-data-i-full-gang/ + * https://www.lantmateriet.se/sv/om-lantmateriet/press/nyheter/lantmateriets-arbete-mot-oppna-data-i-full-gang/ + * https://ext-geodatakatalog.lansstyrelsen.se/GeodataKatalogen/srv/swe/catalog.search#/map uses + * https://api.lantmateriet.se/open/topowebb-ccby/v1/wmts/token/3c3a9cf47e7cb5ea24542d40d19698/?layer=topowebb&style=default&tilematrixset=3006&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix=7&TileCol=237&TileRow=155 */ const baseMapSource = new WMTS({ url: undefined, |