Skip to main content
Sign inSign up
Mapbox GL JS
  • Guides
  • API Reference
  • Plugins and frameworks
  • Examples
  • Style Specificationshare
  • Tutorialsshare
  • Troubleshootingshare
  • All docschevron-right
  • Mapbox GL JSchevron-right
  • Guideschevron-right
  • Getting Started

Getting Started

To get started with Mapbox GL JS, choose the method that fits your project setup.


Get started with CDN

Add Mapbox GL JS to a web project using hosted resources on the Mapbox Content Delivery Network (CDN) and instantiate a map.

Get started with npm

Add Mapbox GL JS to a web project using npm and a modern JavaScript framework and instantiate a map.

Scaffold a web map project

Use our npm create @mapbox-web-app utility to scaffold a new project with Mapbox directly implemented into the project.

Was this page helpful?
Need help? Visit the Support Center
Join our Mapbox Developer Discord
Check out the Developer Cheatsheet
Questions? Ask Mapbox Docs AI
© Mapbox All Rights ReservedTermsPrivacySecurityYour California Privacy Choices