How to use the @mapbox/mapbox-gl-draw/dist/mapbox-gl-draw-unminified function in @mapbox/mapbox-gl-draw

To help you get started, we’ve selected a few @mapbox/mapbox-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 elastic / kibana / x-pack / legacy / plugins / maps / public / connected_components / map / mb / draw_control / draw_control.js View on Github external
constructor() {
    super();
    this._mbDrawControl = new MapboxDraw({
      displayControlsDefault: false,
      modes: mbDrawModes,
    });
    this._mbDrawControlAdded = false;
  }
github elastic / kibana / x-pack / plugins / maps / public / components / map / mb / view.js View on Github external
constructor() {
    super();
    this._mbMap = null;
    this._tooltipContainer = document.createElement('div');
    this._mbPopup = new mapboxgl.Popup({
      closeButton: false,
      closeOnClick: false,
    });
    this._mbDrawControl = new MapboxDraw({
      displayControlsDefault: false,
      modes: mbDrawModes
    });
    this._mbDrawControlAdded = false;
  }