Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for WMS layer #2

Open
n0rdlicht opened this issue Jan 21, 2021 · 0 comments · May be fixed by #9
Open

Support for WMS layer #2

n0rdlicht opened this issue Jan 21, 2021 · 0 comments · May be fixed by #9
Assignees
Labels
enhancement New feature or request proposal
Milestone

Comments

@n0rdlicht
Copy link
Contributor

In addition to the existing support for Simple Style GeoJSON as well as Leaflet based Circle layers adding WMS based sources increases the available base maps to add to snapshots.

Proof of Concept

A working proof of concept for adding WMS support to the Snapshot specification can be found here. The current version of sandbox.gemeindescan.ch has experimental support for WMS layers.

An example can be seen here: https://sandbox.gemeindescan.ch/de/SLF3GE/

Technical detail

Web Map Services (WMS) publishe tiled pixel based maps. These can be added to Leaflet by default with L.tileLayer.wms.

In order to support WMS a MIME-Type of application/vnd.wms can be used as datapackage.resource.mediatype.

Issues / Limitations

The proof of concept has no easy way of integrating existing legends from a WMS layer automatically since it's legend format is not compatible with Snapshot legends. A workaround is manually adding the relevent entries in datapackage.view.spec.legend.

@n0rdlicht n0rdlicht added the enhancement New feature or request label Jan 21, 2021
@n0rdlicht n0rdlicht added this to the v1.1 milestone Jan 21, 2021
@n0rdlicht n0rdlicht self-assigned this Feb 26, 2021
@n0rdlicht n0rdlicht linked a pull request Feb 26, 2021 that will close this issue
5 tasks
@n0rdlicht n0rdlicht linked a pull request Feb 26, 2021 that will close this issue
5 tasks
@n0rdlicht n0rdlicht changed the title Proposal: Support for WMS layer Support for WMS layer Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant