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

Zoom Control missing #17

Closed
johaahlf opened this issue Nov 7, 2017 · 6 comments
Closed

Zoom Control missing #17

johaahlf opened this issue Nov 7, 2017 · 6 comments
Assignees

Comments

@johaahlf
Copy link
Collaborator

johaahlf commented Nov 7, 2017

#17 After the switch language dropdown was added, the zoom in/out control doesn't appear anymore (Firefox, Chrome). The following line seems to be missing. I can add that myself:
map.addControl(new mapboxgl.NavigationControl());
I have implemented something similar on the DARE domain when I was playing around with the Mapbox-gl-js API, https://dare.ht.lu.se/vector/#9/43.7820/5.1240/0/60
I made the Javascript change style, which is a bit slower.
I have just installed the Tilserver-GL on one of my domains using Docker, http://ht-uppakra.ht.lu.se:8080/
This is currently the only server running Ubuntu 16.04 LTS.

@johaahlf
Copy link
Collaborator Author

johaahlf commented Nov 7, 2017

I just discovered that the Uppakra site is still behind our firewall, so its not accessible from outside yet. However the Tileserver-GL is up and running with the Zürich test data.

@johaahlf
Copy link
Collaborator Author

johaahlf commented Nov 7, 2017

I have added the missing code and now the Navigation control is visible again :-)

@johaahlf johaahlf self-assigned this Nov 8, 2017
@klokan
Copy link
Member

klokan commented Nov 8, 2017

Great! Thanks.

@klokan klokan closed this as completed Nov 8, 2017
@klokan
Copy link
Member

klokan commented Nov 8, 2017

BTW For the blog post - I would love to send people to URL:
https://klokantech.github.io/roman-empire/#4.65/45.684/13.714

@johaahlf
Copy link
Collaborator Author

johaahlf commented Nov 8, 2017

Ok, the implementation at DARE is for my own testing purposes and how to implement the full user interface using Mapbox-gl-js in the future instead of OpenLayers. @klokan

@klokan
Copy link
Member

klokan commented Nov 8, 2017

BTW the OpenLayers can display the same style too - just fine - with
https://github.com/boundlessgeo/ol-mapbox-style

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

No branches or pull requests

2 participants