101 Restyle map for a more muted appearance using vector tiles from Maptile #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NB: this is to be merged after the big caching PR 71. This work
comprises just the final 3 commits!
Show "Positron" style of OpenStreetMap vector tiles
We now display our OpenStreetMap layer in
vector form rather than with raster tiles. This makes for a smoother
UX but comes at a small cost of increased processing on the user's
device -- so we need to verify that performance is acceptable for
all users.
See:
https://www.maptiler.com/news/2019/02/what-are-vector-tiles-and-why-you-should-care/
For more details on using Maptiler, particularly with
Leaflet:
Other styles
Another muted style which we looked at is "Dataviz": https://www.maptiler.com/maps/#style=dataviz&mode=2d&position=10.44/51.5031/-0.0756
Dependencies
MAPTILER_API_KEY
on Heroku. The production key is limited to our Heroku host (air-text-3e4548b53179.herokuapp.com
)Screenshots
Essex
Zoomed in to Chelmsford