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

Allow setting permalink zoom with map_zoom param #5684

Merged
merged 2 commits into from Apr 14, 2020

Conversation

svareg
Copy link
Contributor

@svareg svareg commented Mar 31, 2020

Allow to set the zoom level with the parameter map_zoom in the URL for a WFS-Permalink.

@@ -252,7 +260,7 @@ WfsPermalinkService.prototype.issueRequest_ = function(wfsType, filter, map, sho
// zoom to features
const size = map.getSize();
if (size !== undefined) {
const maxZoom = this.pointRecenterZoom_;
const maxZoom = zoomLevel || this.pointRecenterZoom_;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't work with zoomLevel == 0...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@svaabs Can you change it to this:
const maxZoom = zoomLevel !== undefined ? zoomLevel : this.pointRecenterZoom_;

@sbrunner
Copy link
Member

@fredj does it look good to you?

@fredj
Copy link
Member

fredj commented Apr 1, 2020

looks good to me

@jwkaltz jwkaltz requested a review from sbrunner April 14, 2020 10:56
@jwkaltz
Copy link
Member

jwkaltz commented Apr 14, 2020

@sbrunner review OK? (fredj wrote that it is OK for him)

@sbrunner
Copy link
Member

+1, merging :-)

@sbrunner sbrunner merged commit 3485ecc into camptocamp:2.4 Apr 14, 2020
sbrunner added a commit that referenced this pull request Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants