React Mapgl with deck geojsoncomponents
npm install react-mapgl-with-deck-geojson-componentsAll the components use React Hooks.
javascript
mapboxApiAccessToken: string
mapStyle: string
geojson?: FeatureCollection
latitude?: number
longitude?: number
width?: number
height?: number
`###Example:
Only mapboxApiAccessToken and mapStyle is required to create a simple map. You can pass geojson linestring as a GeoJSON FeatureCollection to view the line.
`javascript
let map_comp_props = {
mapboxApiAccessToken: YOUR_MAPBOX_API_KEY,
mapStyle: "mapbox://styles/mapbox/light-v10"
}
``