Scaffold a web map project
To create a new project using Mapbox GL JS, you can use our npm create @mapbox/web-app command line utility. This NPM package scaffolds a Mapbox GL JS map into popular front end frameworks allowing you to get Mapbox GL JS map running in a web application in under 30 seconds. You can also add interactive search powered by Mapbox Search JS.
Frameworks supported:
To get started, have your access token ready and run the following command in your terminal.
$npm create @mapbox/web-app
Follow the prompts, and you will have a new project with Mapbox GL JS installed and a map rendered on the page. You can then start building your web application with Mapbox GL JS!
このpageは役に立ちましたか?