Skip to main content
100%

A basic map with MapboxGL.js

✓ Published0🌍 Public
NNieneB
Last edited Feb 8, 2018
Created on Feb 8, 2018

This example displays an interactive map centered on Amsterdam, featuring a tilted and rotated view of the city with MapboxGL.js. The map uses the Mapbox streets style, with zoom, pitch, and bearing set to create a perspective view. The code loads the mapbox-gl.js library and its associated CSS, then initializes a `mapboxgl.Map` instance on a container div, adding a navigation control. It relies on a hardcoded Mapbox access token to fetch tile data from the Mapbox service, showing how to embed a basic map with custom camera settings.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes