Railroad Map
✓ Published1🌍 Public
This example displays an interactive map centered on New England, with a custom style that emphasizes railroad lines. The map uses MapLibre GL (via the `mapboxgl.Map` API) and loads a custom OpenMapTiles style from MapTiler, which modifies the default rendering to highlight railways. The view is initialized at a specific longitude, latitude, and zoom level, and a `moveend` event logs the current center and zoom to the console.
AI-generated descriptionA basic working starter example for using MapLibre GL and OpenMapTiles.
This is just an experiment that uses a custom style that is defined inside MapTiler, which changes the style for railroads.
Inspired by OpenMapTiles: Mapbox GL JS Display a Map.
MIT Licensed