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

Add max-zoom setting for point geometries for oedit permalinks #4279

Merged
merged 3 commits into from
Oct 2, 2018

Conversation

@pfirpfel pfirpfel added this to the 2.2 milestone Oct 1, 2018
@pfirpfel pfirpfel self-assigned this Oct 1, 2018
@@ -700,8 +707,16 @@ gmf.Permalink.prototype.registerMap_ = function(map, oeFeature) {
// b) the X, Y and Z available within the permalink service, if available
if (oeFeature && oeFeature.getGeometry()) {
const size = map.getSize();
const geom = oeFeature.getGeometry();
Copy link
Member

Choose a reason for hiding this comment

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

oeFeature.getGeometry() is already called two line upper. Can you call it once (use the variable) ?

Copy link
Member

@ger-benjamin ger-benjamin left a comment

Choose a reason for hiding this comment

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

Thanks !

@pfirpfel pfirpfel force-pushed the max-zoom-fit-oeedit-feature-2.2 branch from 42af8f0 to 6f3d7da Compare October 1, 2018 14:43
@pfirpfel pfirpfel merged commit 1fbc303 into camptocamp:2.2 Oct 2, 2018
@pfirpfel pfirpfel deleted the max-zoom-fit-oeedit-feature-2.2 branch October 2, 2018 12:38
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

Successfully merging this pull request may close these issues.

2 participants