How to use the react-map-gl-draw.EditorModes.READ_ONLY 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 / nebula.gl / examples / react-map-gl-draw / app.js View on Github external
constructor(props) {
    super(props);
    this.state = {
      // map
      viewport: DEFAULT_VIEWPORT,
      // editor
      selectedMode: EditorModes.READ_ONLY,
      features: [],
      selectedFeatureIndex: null
    };
    this._editorRef = null;
  }
github uber / react-map-gl / examples / draw-polygon / src / app.js View on Github external
constructor(props) {
    super(props);
    this._editorRef = null;
    this.state = {
      viewport: {
        longitude: -91.874,
        latitude: 42.76,
        zoom: 12
      },
      mode: EditorModes.READ_ONLY,
      selectedFeatureIndex: null
    };
  }