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

Fix 612 - GMF Drawing, zoom out if feature doesn't fit map view extent #4263

Merged
merged 2 commits into from Oct 2, 2018

Conversation

adube
Copy link
Contributor

@adube adube commented Sep 24, 2018

Fixes https://jira.camptocamp.com/browse/GSGMF-612

In the GMF Drawing tool, when selecting a feature from the list, if the feature would be too big for the current map view extent, then fit the view to the feature instead of just panning to it.

@@ -1211,41 +1211,65 @@ exports.prototype.getType = function(feature) {
* the center of the feature.
* @param {!ol.Feature} feature Feature.
* @param {!ol.Map} map Map.
* @param {boolean=} opt_zoomOut Whether the map should also be zoomed
* out if the feature would not fit inside the current map view
Copy link
Member

Choose a reason for hiding this comment

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

rather : if the feature does not fit

@fredj
Copy link
Member

fredj commented Sep 26, 2018

@julsbreakdown please approve and merge if you're happy about this pull request !

@adube adube merged commit e2dfc0e into camptocamp:master Oct 2, 2018
@adube adube deleted the v2_4-612-drawing-zoom-out branch October 2, 2018 12:46
@sbrunner sbrunner added this to the 2.4 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.

None yet

4 participants