Fork of Railroad Map
✓ Published0🌍 Public
This fork of a railroad map highlights major rail lines using a custom MapTiler style overlaid on MapLibre GL. The map centers on a region in Iowa at zoom level 8.5, with the `major-rail` class applying the distinctive styling to railroad features. It uses the `mapboxgl.Map` API with a style URL from MapTiler’s style server, and logs the map center and zoom on each `moveend` event. The example is built on the MapLibre GL JavaScript library and OpenMapTiles vector tiles.
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