klokantech / roman-empire

Map of the Roman Empire made with vector tiles
https://klokantech.github.io/roman-empire/#4.01/41.957/19.646/0/8
80 stars 26 forks source link

Zoom Control missing #17

Closed johaahlf closed 7 years ago

johaahlf commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

klokan commented 7 years ago

Great! Thanks.

klokan commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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