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

redlining layer in url #533

Closed
klix2 opened this issue Mar 13, 2024 · 3 comments
Closed

redlining layer in url #533

klix2 opened this issue Mar 13, 2024 · 3 comments

Comments

@klix2
Copy link

klix2 commented Mar 13, 2024

In the doc the url parameter L is used to define the layers of the map :

_The l parameter lists all layers in the map (redlining and background layers) as a comma separated list of entries of the form

              <layername>[<transparency>]{<style>}!_ 

what is the format for defining features in the redlining layer via the url ?
i need to open a map window with some points on it from another application

@manisandro
Copy link
Member

There is no way to control the redlining via URL currently, though it would not be very hard to introduce a URL parameter taking a GeoJSON value to display as redlining layer.

@klix2
Copy link
Author

klix2 commented Mar 13, 2024

thanks for the answer
is there a way to create a permalink / or bookmark via an api call ? that would solve the issue for me

@manisandro
Copy link
Member

With [1] you should now be able to write

window.qwc2.PermalinkUtils.generatePermaLink(window.qwc2.getState(), (permalinkUrl) => { ... })

[1] qgis/qwc2@06c4de3

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

No branches or pull requests

2 participants