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

feat: add downloadConfig to layer #166

Merged
merged 2 commits into from
Oct 14, 2022
Merged

Conversation

LukasLohoff
Copy link
Member

Allows to save download related configuration in layer.clientConfig, e.g.:

{
  "hoverable": false,
  "downloadConfig": [
    {
      "downloadUrl": "https://localhost/geoserver/SHOGUN/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=SHOGUN%3APEGEL&maxFeatures=50&outputFormat=SHAPE-ZIP",
      "formatName": "Shapefile"
    },
    {
      "downloadUrl": "https://localhost/geoserver/SHOGUN/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=SHOGUN%3APEGEL&maxFeatures=50&outputFormat=application%2Fjson",
      "formatName": "GeoJSON"
    }
  ]
}

@terrestris/devs Please review

src/model/Layer.ts Outdated Show resolved Hide resolved
@LukasLohoff
Copy link
Member Author

Thanks for the review!

@LukasLohoff LukasLohoff merged commit 63cde58 into main Oct 14, 2022
@github-actions
Copy link

🎉 This PR is included in version 3.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants