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

[API] Fix view center after selectObject #4400

Merged
merged 1 commit into from Nov 26, 2018

Conversation

arnaud-morvan
Copy link
Member

@arnaud-morvan arnaud-morvan commented Nov 21, 2018

Fix https://jira.camptocamp.com/browse/GSGMF-726

As map is not rendered yet when overlay.setPosition is called, overlay is not really positionned.
See: https://github.com/openlayers/openlayers/blob/c6be2c7ff5f6d7b64ec0011e6fc43b6c8e6a1524/src/ol/Overlay.js#L502
So autoPan has bad side effect.

As far as I understand, as we manually set the view center, we do not want to use autoPan on popup when the position is set on overlay, but to see the marker in center of the view.

Copy link
Member

@fredj fredj left a comment

Choose a reason for hiding this comment

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

thanks

@arnaud-morvan arnaud-morvan merged commit f2418cb into master Nov 26, 2018
@arnaud-morvan arnaud-morvan deleted the gsgmf-615-fix-select-object branch November 26, 2018 07:47
@sbrunner sbrunner added this to the 2.4 milestone Nov 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

3 participants