Skip to content

Commit

Permalink
Bump GL Draw to v1.5.0 (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
underoot authored Dec 11, 2024
1 parent ab42b63 commit 1ffdc22
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 34 deletions.
62 changes: 33 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@mapbox/gist-map-browser": "0.2.1",
"@mapbox/github-file-browser": "0.6.1",
"@mapbox/maki": "^8.0.1",
"@mapbox/mapbox-gl-draw": "1.4.1",
"@mapbox/mapbox-gl-draw": "^1.5.0",
"@mapbox/mapbox-gl-geocoder": "^5.0.2",
"@mapbox/polyline": "^1.1.1",
"@placemarkio/tokml": "^0.3.3",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/draw/circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// forces draw.create on creation of second vertex
const circle = require('@turf/circle').default;
const length = require('@turf/length').default;
const MapboxDraw = require('@mapbox/mapbox-gl-draw');
const MapboxDraw = require('@mapbox/mapbox-gl-draw').default;

const { getDisplayMeasurements } = require('./util.js');

Expand Down
2 changes: 1 addition & 1 deletion src/ui/draw/linestring.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// this mode extends the build-in linestring tool, displaying the current length
// of the line as the user draws using a point feature and a symbol layer
const MapboxDraw = require('@mapbox/mapbox-gl-draw');
const MapboxDraw = require('@mapbox/mapbox-gl-draw').default;

const { getDisplayMeasurements } = require('./util.js');

Expand Down
2 changes: 1 addition & 1 deletion src/ui/draw/simple_select.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const MapboxDraw = require('@mapbox/mapbox-gl-draw');
const MapboxDraw = require('@mapbox/mapbox-gl-draw').default;

const SimpleSelect = {
...MapboxDraw.modes.simple_select,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const mapboxgl = require('mapbox-gl');

require('qs-hash');
const geojsonRewind = require('@mapbox/geojson-rewind');
const MapboxDraw = require('@mapbox/mapbox-gl-draw');
const MapboxDraw = require('@mapbox/mapbox-gl-draw').default;
const MapboxGeocoder = require('@mapbox/mapbox-gl-geocoder');

const DrawLineString = require('../draw/linestring');
Expand Down

0 comments on commit 1ffdc22

Please sign in to comment.