🌍 Public
Viewing a saved revision (read-only)
77acd774a770491d8fa7f13a47c52318
MapLibre GL Starter
This example displays an interactive world map using MapLibre GL and OpenMapTiles. The map is rendered with a dark matter style from Maptiler, centered on coordinates [8, 15] with an initial zoom level of one. The code initializes a `mapboxgl.Map` object, specifying the container element, the style URL, and the default view. This starter serves as a minimal foundation for building map-based visualizations with these libraries.
AI-generated descriptionA basic working starter example for using MapLibre GL and OpenMapTiles.
Inspired by OpenMapTiles: Mapbox GL JS Display a Map.