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

Mobile: Map should fit better to Slovenia on initial load #96

Open
MarkoJuvancic opened this issue Dec 14, 2021 · 3 comments
Open

Mobile: Map should fit better to Slovenia on initial load #96

MarkoJuvancic opened this issue Dec 14, 2021 · 3 comments
Milestone

Comments

@MarkoJuvancic
Copy link

image

The map shows too much of the rest of Europe on initial load.

@MarkoJuvancic MarkoJuvancic changed the title Map should be more zoomed to Slovena only Map should be more zoomed to Slovenia only Dec 14, 2021
@stefanb
Copy link
Member

stefanb commented Dec 14, 2021

On mobile it should be more zoomed out:
Screenshot_20211214-190328.jpg

So we should basically use fitbounds leaflet's API to center and adjust zoom upon initial load.

Doing the same when searching to fit search results may have undesired effects as map bounds are also used as search parameters.

@stefanb stefanb changed the title Map should be more zoomed to Slovenia only Map should fit better to Slovenia on initial load Dec 15, 2021
@jalezi jalezi linked a pull request Dec 15, 2021 that will close this issue
@lukarenko
Copy link
Contributor

Desktop is fine, we could improve mobile (show whole Slovenia)

@lukarenko lukarenko changed the title Map should fit better to Slovenia on initial load Mobile: Map should fit better to Slovenia on initial load Dec 24, 2021
@lukarenko lukarenko added this to the MVP milestone Dec 24, 2021
@lukarenko lukarenko reopened this Dec 26, 2021
@stefanb
Copy link
Member

stefanb commented Jan 1, 2022

Also on full-screen desktop it would fit perfectly with one zoom level higher

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 a pull request may close this issue.

3 participants