How to use the react-map-gl-draw.EditorModes.EDITING function in react-map-gl-draw

To help you get started, we’ve selected a few react-map-gl-draw examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uber / react-map-gl / examples / draw-polygon / src / app.js View on Github external
_onUpdate = ({editType}) => {
    if (editType === 'addFeature') {
      this.setState({
        mode: EditorModes.EDITING
      });
    }
  };