Skip to main content
100%

Railroad Map

✓ Published1🌍 Public
CCurran Kelleher
Last edited Dec 18, 2020
Created on Dec 18, 2020

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 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