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

101 Restyle map for a more muted appearance using vector tiles from Maptile #72

Merged
merged 2 commits into from
Oct 31, 2024

Commits on Oct 31, 2024

  1. Add MapTiler library for Leaflet

    @maptiler/leaflet-maptilersdk
    
    This will allow us to display our OpenStreetMap layer in
    vector form rather than with raster tiles. 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:
    
    - https://docs.maptiler.com/leaflet/examples/vector-tiles-in-leaflet-js/
    - https://docs.maptiler.com/sdk-js/
    - https://github.com/maplibre/maplibre-gl-leaflet/
    - https://github.com/maptiler/leaflet-maptilersdk
    edavey committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    94bca08 View commit details
    Browse the repository at this point in the history
  2. Display OSM using Maptiler vector tiles rather than raster tiles

    We use the "positron" style:
    
    https://www.maptiler.com/maps/#style=positron&mode=2d&position=10.44/51.5031/-0.0756
    
    We introduce a new `MAPTILER_API_KEY` environment variable
    for our Maptiler service. The production key for Heroku will
    only work for request originating from our host:
    
    `air-text-3e4548b53179.herokuapp.com`
    
    The development key is in 1Password
    edavey committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    0f3dbd2 View commit details
    Browse the repository at this point in the history