Skip to main content
100%

Fork of Railroad Map

✓ Published0🌍 Public
Ssahild11
Last edited Oct 4, 2021
Created on Oct 4, 2021
Forked from Railroad Map

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 description

A 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

Similar vizzes