Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 2.29 KB

File metadata and controls

52 lines (36 loc) · 2.29 KB

maps

Map styles for ottrec.ca. WIP.

Edit these in Maputnik, then import the changes manually. The OSM data inspector is useful (Layers > Map Data).

Rendering

Get the latest North America OSM extract from Geofabrik.

Create OpenMapTiles-compatible vector tiles with tilemaker.

docker run --interactive --rm -v $(pwd):/data ghcr.io/systemed/tilemaker:master /data/north-america-latest.osm.pbf --output /data/ottrec.pmtiles --bbox -76.6,44.8,-75.0,45.7 --config /data/tilemaker.json

The map bounds are 44.8,-76.6 to 45.7,-75.0, and also note that 45.5,-76.2 to 45.2,-75.1 contains all facilities with some extra room.

Even though the zoom is set to 14 for the vector tiles, we can render the raster ones at a higher zoom level.

Due to systemed/tilemaker#802, the labels in the styles need to use {name:latin} instead of Carto's {name} or {name_en}.

To test these in Maputnik, use "carto": { "type": "vector", "tiles": ["http://localhost:8080/ottrec/{z}/{x}/{y}.mvt"] } with go run github.com/protomaps/go-pmtiles@v1.30.3 serve tilemaker --cors='*' --public-url=http://localhost:8080.

TODO: figure out how to render raster tiles

TODO

Features

  • Remove unneeded features to simplify customization.
    • Airports
    • Boundary lines
    • More?
  • Remove clutter
    • Wading pool labels (these are a bit silly, it's marking every little puddle of water, and some of the swimming pools)
    • Park labels
    • More?
  • Add transit stuff
    • LRT
    • LRT stations
    • Bus stops

Misc