# react-mapbox-gl
**Repository Path**: erdongC/react-mapbox-gl
## Basic Information
- **Project Name**: react-mapbox-gl
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-01-26
- **Last Updated**: 2024-01-26
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

# React-mapbox-gl | [Documentation](docs/API.md) | [Demos](http://alex3165.github.io/react-mapbox-gl/demos)
[](https://travis-ci.org/alex3165/react-mapbox-gl)
[](https://www.npmjs.com/package/react-mapbox-gl)
[](https://www.npmjs.com/package/react-mapbox-gl)
[](https://github.com/microsoft/TypeScript)
#### React wrapper for [mapbox-gl-js](https://www.mapbox.com/mapbox-gl-js/api/).

## Components
### Proxy components (proxy between React and Mapbox API)
- ReactMapboxGL
- Layer & Feature
- property `symbol` displays a mapbox symbol.
- property `line` displays a lineString.
- property `fill` displays a polygon.
- property `circle` displays a mapbox circle.
- property `raster` displays a mapbox raster tiles.
- property `fill-extrusion` displays a layer with extruded buildings.
- property `background` displays a mapbox background layer.
- property `heatmap` displays a mapbox heatmap layer.
- Source
- GeoJSONLayer
### DOM components (normal React components)
- ZoomControl
- ScaleControl
- RotationControl
- Marker (Projected component)
- Popup (Projected component)
- Cluster
## Getting Started
```
npm install react-mapbox-gl mapbox-gl --save
```
Example:
Adding the css in your index.html:
```html