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

Add Zoom Navigation Control to the map #189

Closed
wants to merge 1 commit into from

Conversation

tordans
Copy link
Contributor

@tordans tordans commented Oct 3, 2019

Zooming on a desktop is not a problem, but on a touch device one is helpless without the NavigationControls which are added here.

Documentation:
Example https://docs.mapbox.com/mapbox-gl-js/example/navigation/
Config https://docs.mapbox.com/mapbox-gl-js/api/#navigationcontrol


I could not test this locally. I have the system active now, but the bundle.js is not refreshed on my system, so the changes in this file never showed in my browser. However, its a simple change so I hope it will just work. Please test it before considering a merge.


This is a step to improve OSMCha/osmcha-frontend#341 once it is added to the osmcha-frontend.

Zooming on a desktop is not a problem, but on a touch device one is helpless without the NavigationControls which are added here.

Documentation:
Example https://docs.mapbox.com/mapbox-gl-js/example/navigation/
Config https://docs.mapbox.com/mapbox-gl-js/api/#navigationcontrol
@tordans
Copy link
Contributor Author

tordans commented Mar 4, 2020

@willemarcel why you are active here (#202), I would love to see those zoom controls in the app to improve the mobile and iPad experience.

@willemarcel
Copy link
Collaborator

Merged with #204

@willemarcel willemarcel closed this Mar 8, 2020
@willemarcel
Copy link
Collaborator

willemarcel commented Mar 8, 2020

Thank you very much, @tordans ! Sorry for the delay... I added a check to show the zoom control only if the device is touchscreen and doesn't have a mouse. We'll update osmcha tomorrow. Let me know if it works for you

@tordans tordans deleted the add-zoom branch March 8, 2020 20:51
@willemarcel
Copy link
Collaborator

@tordans it's already live on osmcha.org

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.

2 participants