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

How do I center to extent defined in qgs file #382

Closed
ndethi opened this issue Sep 16, 2022 · 1 comment
Closed

How do I center to extent defined in qgs file #382

ndethi opened this issue Sep 16, 2022 · 1 comment

Comments

@ndethi
Copy link

ndethi commented Sep 16, 2022

How do i make themesConfig.json pick the extent defined in the qgs file and have it center the extent instead of centering the entire map, which leaves the extent a drift to the right of the viewport?

Tried editing the config.json file to no avail? Alternatively where would I pass $st parameter on default load of page so it loads the search result by default on visiting the client?

@manisandro
Copy link
Member

The themesConfig.js script (or the counterpart in the qwc-config-generator) will read the extent specified in the QGIS project properties if one is set:

image

So you can specify your desired extent there.

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