- Open your text editor.
- Copy and paste the code below into your text editor to initialize your Mapbox GL JS map.
- Make sure
mapboxgl.accessToken
is set equal to your access token.
- You can find your access token on your Access tokens page when you sign into your Mapbox Account.
- Replace your-style-URL-here with your own style URL. Need help finding your style URL?
- Save your file as
index.html.