-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
src/statemanager/WfsPermalink.js
Outdated
@@ -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_; |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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_;
@fredj does it look good to you? |
looks good to me |
@sbrunner review OK? (fredj wrote that it is OK for him) |
+1, merging :-) |
Allow to set the zoom level with the parameter map_zoom in the URL for a WFS-Permalink.