Closed briandaviddavidson closed 4 years ago
mapbox-gl-js version: ^0.52.0 mapbox-gl-draw version: ^1.1.1
npm install @mapbox/mapbox-gl-draw --save
const MapboxDraw = require("@mapbox/mapbox-gl-draw")
index.js
const draw = new MapboxDraw({ displayControlsDefault: false, controls: { line_string: true, trash: true } });
npm start
Mapbox draw would load and be ready to use with a line_string and trash button.
line_string
trash
fixed
mapbox-gl-js version: ^0.52.0 mapbox-gl-draw version: ^1.1.1
Steps to Trigger Behavior
npm install @mapbox/mapbox-gl-draw --save
const MapboxDraw = require("@mapbox/mapbox-gl-draw")
toindex.js
filenpm start
Expected Behavior
Mapbox draw would load and be ready to use with a
line_string
andtrash
button.Actual Behavior