🌍 Public
Viewing a saved revision (read-only)
bfec3eceef16433d9b7534f6ad2cb9ef
Railroad Map
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.