react-mapbox-gl-editor-components
Install
npm install --save react@16.2.x react-dom@16.2.x react-mapbox-gl@3.9.2 @mapbox/mapbox-gl-draw@1.0.2 // peerDependenciesnpm install --save react-mapbox-gl-editor-components
Usage
import React Component from 'react'import ReactMapboxGL from 'react-mapbox-gl' import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'; import MBEditorComponents from 'react-mapbox-gl-editor-components' const Map = { return <Map = ="mapbox://styles/mapbox/streets-v9"> <MBEditorComponents /> </Map> }
License
MIT © ilomon10