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

Search: limit max zoom when zooming to feature #1265

Closed
jacobwod opened this issue Jan 16, 2023 · 1 comment
Closed

Search: limit max zoom when zooming to feature #1265

jacobwod opened this issue Jan 16, 2023 · 1 comment
Assignees
Labels
new feature Request for adding/changing functionality plugin:search Functionality and features of the (core) Search plugin
Milestone

Comments

@jacobwod
Copy link
Member

Currently when user selects a result in the search results list we zoom into the selected feature's extent:
Skärmavbild 2023-01-16 kl  09 52 17

Users have reported that for some layers, they would prefer a less zoomed in view than what is currently happening.

Yet, we need to decide if this should be a per-map-setting or a per-layer-setting. Both cases are valid but I'm not sure which is of more use for admins.

Second, this will require some rewriting of the zoom mechanism, as we zoom into extent now, not a zoom level.

@jacobwod jacobwod added plugin:search Functionality and features of the (core) Search plugin new feature Request for adding/changing functionality labels Jan 16, 2023
@jacobwod jacobwod added this to the 3.x milestone Jan 16, 2023
@Hallbergs
Copy link
Member

Should be an easy fix. You can add maxZoom to the fit method. (Which fitMapToExtent is based on.)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Request for adding/changing functionality plugin:search Functionality and features of the (core) Search plugin
Projects
None yet
Development

No branches or pull requests

2 participants