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

612 - GMF draw - Zoom out when required #4292

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

adube
Copy link
Contributor

@adube adube commented Oct 5, 2018

This patch introduces the missing behaviour that was explained in 612 for the GMF drawing tool: if a feature is visible but would not fit the extent of the map if we panned, then zoom out.

The NGEO featureHelper panMapToFeature has been renamed to fitMapToFeature and the opt_zoom option was removed. It was getting too complex to keep that option, and not really wanted anyway. Therefore, the goal of the method was no longer only to "pan", but to "pan", "zoom" or "fit" depending on the scenario.

@arnaud-morvan arnaud-morvan merged commit c0c56c0 into camptocamp:master Oct 8, 2018
@adube adube deleted the v2_4-612-draw-zoom-out branch October 9, 2018 12:18
@sbrunner sbrunner added this to the 2.1 milestone Oct 30, 2018
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.

3 participants