Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

49_popupsize #60

Merged
merged 4 commits into from
Oct 13, 2020
Merged

49_popupsize #60

merged 4 commits into from
Oct 13, 2020

Conversation

mvaaltola
Copy link
Contributor

Make popups smaller on mobile by decreasing font size. Also adjust popup position to overlap clicked point.

Issues remain with OL autopan not working correctly. Intended behaviour is to pan the map when a popup opens so it fits on screen. Currently the map is only panned after the second click on the feature and even that is not done reliably.

The position: absolute change on mobile displays in this PR probably also prevents autopanning from working, but it does not work even if not manually setting position.

@Joonalai if you have time you can take a look if you can solve issues with autopan, otherwise we can merge this and move popup positioning to a new issue.

Resolves #49.

@mvaaltola mvaaltola added this to the rc2 milestone Oct 13, 2020
@mvaaltola mvaaltola self-assigned this Oct 13, 2020
@Joonalai
Copy link
Contributor

I am afraid I don't have time to solve the autopan issue just yet. I created an issue #62 for that.

@Joonalai Joonalai merged commit 888e521 into master Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix info pop up size and position
2 participants