-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
470 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# Vector Tiles Assets | ||
|
||
Assets for vector tiles provided by Klimadatastyrelsen. | ||
|
||
A demo view of all the stylefiles is available at https://sdfidk.github.io/vector_tiles_assets/ | ||
|
||
## Getting Started | ||
|
||
Install the [npm package](@dataforsyningen/vector_tiles_assets): | ||
|
||
`npm install @dataforsyningen/vector_tiles_assets` | ||
|
||
You can then copy the assets you need into your project from `./node_modules/@dataforsyningen/vector_tiles_assets`. For instance, see how it can be done with esbuild [here](https://github.com/SDFIdk/vector_tiles_frontend/blob/main/escopy.js) | ||
|
||
Alternatively you can load the assets directly from our CDN, for instance: | ||
|
||
`cdn.dataforsyningen.dk/assets/vector_tiles_assets/${version}/styles/official/3857_skaermkort_klassisk.json` | ||
|
||
using any release version or `latest`. | ||
|
||
## Read More | ||
- [Guide to Vector Tiles skærmkort (in Danish)](https://github.com/SDFIdk/vector_tiles_assets/blob/main/docs/tutorials/vejledning.md) | ||
- [Qgis, ArcGIS pro and other GIS clients](https://github.com/SDFIdk/vector_tiles_assets/blob/main/docs/tutorials/qgis.md) | ||
- [Changelog](https://github.com/SDFIdk/vector_tiles_assets/blob/main/CHANGELOG.md) | ||
- [The Vector Tiles API](https://github.com/SDFIdk/vector_tiles_assets/blob/main/docs/tutorials/api.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# API | ||
URL til API'et er dette: | ||
`https://api.dataforsyningen.dk/rest/skaermkort_vector_tiles/v1.0/EPSG:25832/EPSG:25832:{z}/{y}/{x}?f=application/vnd.mapbox-vector-tile` | ||
|
||
Husk at tilføje en token, enten som header eller URL parameter, læs mere om det her: https://confluence.sdfi.dk/display/MYD/Log+ind+og+Token | ||
|
||
Bemærk at API'et ikke er implementeret som OGC API-Tiles standarden, men minder om den. | ||
|
||
Som webapplikation er API'et kun testet i Openlayers med `ol-mapbox-style`. Dette repository kan bruges som eksempel på en implementation. | ||
|
||
Hvis du vil bruge API'et i din GIS-klient, virker det foreløbig kun i QGIS. Du kan benytte Dataforsyningens QGIS-plugin: https://confluence.sdfi.dk/display/MYD/Dataforsyning-plugin+til+QGIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# QGIS | ||
|
||
Brug Vector Tiles i QGIS med Dataforsyningens QGIS-plugin: https://confluence.sdfi.dk/display/MYD/Dataforsyning-plugin+til+QGIS |
Oops, something went wrong.