# mapbox-gl-jscgcs2000 **Repository Path**: wclwksn/mapbox-gl-jscgcs2000 ## Basic Information - **Project Name**: mapbox-gl-jscgcs2000 - **Description**: No description available - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: 1ec5-token-default-104 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-08 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://circleci.com/gh/mapbox/mapbox-gl-js.svg?style=svg)](https://circleci.com/gh/mapbox/mapbox-gl-js) [![Coverage Status](https://coveralls.io/repos/github/mapbox/mapbox-gl-js/badge.svg?branch=master)](https://coveralls.io/github/mapbox/mapbox-gl-js?branch=master) # Mapbox GL JS Mapbox GL JS is a Javascript & WebGL library that renders interactive maps from [vector tiles](https://www.mapbox.com/blog/vector-tiles/) and the [Mapbox GL Style Specification]([Style Specification](https://www.mapbox.com/mapbox-gl-style-spec)). It is part of the [Mapbox GL ecosystem](https://github.com/mapbox/mapbox-gl) which includes [Mapbox GL Native](https://www.mapbox.com/mapbox-gl-native), a suite of compatible SDKs for native desktop and mobile applications. - [API Documentation](https://www.mapbox.com/mapbox-gl-js/api) - [API Examples](https://www.mapbox.com/mapbox-gl-js/examples/) - [Style Specification](https://www.mapbox.com/mapbox-gl-style-spec) - [Gallery](https://www.mapbox.com/gallery/) - [Typescript Interface Definition](https://github.com/Smartrak/mapbox-gl-js-typescript) [Mapbox GL JS gallery](https://www.mapbox.com/gallery/) ## Using Mapbox GL JS with a `
``` ## Using Mapbox GL JS with [Browserify](http://browserify.org/) To use the [vector tiles](https://www.mapbox.com/maps/) and styles hosted on http://mapbox.com, you must [create an account](https://www.mapbox.com/studio/signup/) and then [obtain an access token](https://www.mapbox.com/studio/account/tokens/). You may learn more about access tokens [here](https://www.mapbox.com/help/define-access-token/). Install the [`mapbox-gl` npm package](https://www.npmjs.com/package/mapbox-gl) ```bash npm install --save mapbox-gl ``` Instantiate `mapboxgl.Map` ```js var mapboxgl = require('mapbox-gl'); mapboxgl.accessToken = ''; var map = new mapboxgl.Map({ container: '', style: 'mapbox://styles/mapbox/streets-v9' }); ``` ## Using Mapbox GL JS with [Webpack](https://webpack.github.io/) To use the [vector tiles](https://www.mapbox.com/maps/) and styles hosted on http://mapbox.com, you must [create an account](https://www.mapbox.com/studio/signup/) and then [obtain an access token](https://www.mapbox.com/studio/account/tokens/). You may learn more about access tokens [here](https://www.mapbox.com/help/define-access-token/). Install the [`mapbox-gl` npm package](https://www.npmjs.com/package/mapbox-gl) and the required loaders. ```bash npm install --save mapbox-gl npm install --save transform-loader npm install --save json-loader npm install --save webworkify-webpack ``` Add the [required additional options from webpack.config.example.js](webpack.config.example.js) to your webpack configuration. Instantiate `mapboxgl.Map` ```js var mapboxgl = require('mapbox-gl'); mapboxgl.accessToken = ''; var map = new mapboxgl.Map({ container: '', style: 'mapbox://styles/mapbox/streets-v9' }); ``` ### Using import If you're using the ES6 module system, you can import `mapboxgl` like so: ```js import mapboxgl from 'mapbox-gl'; ``` ## Contributing to Mapbox GL JS See [CONTRIBUTING.md](https://github.com/mapbox/mapbox-gl-js/blob/master/CONTRIBUTING.md).