Skip to content

Commit

Permalink
more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gebuz committed Nov 26, 2024
1 parent 2c9fe2e commit 019cad5
Show file tree
Hide file tree
Showing 4 changed files with 470 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
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)
11 changes: 11 additions & 0 deletions docs/tutorials/api.md
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
3 changes: 3 additions & 0 deletions docs/tutorials/qgis.md
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
Loading

0 comments on commit 019cad5

Please sign in to comment.