Skip to content

Commit 43fd8b4

Browse files
committed
use plotly mapbox-gl v1.13.4
1 parent 077e911 commit 43fd8b4

File tree

5 files changed

+95
-82
lines changed

5 files changed

+95
-82
lines changed

package-lock.json

Lines changed: 90 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"@plotly/d3": "3.8.1",
7474
"@plotly/d3-sankey": "0.7.2",
7575
"@plotly/d3-sankey-circular": "0.33.1",
76+
"@plotly/mapbox-gl": "v1.13.4",
7677
"@turf/area": "^6.4.0",
7778
"@turf/bbox": "^6.4.0",
7879
"@turf/centroid": "^6.0.2",
@@ -97,7 +98,6 @@
9798
"has-hover": "^1.0.1",
9899
"has-passive-events": "^1.0.0",
99100
"is-mobile": "^4.0.0",
100-
"mapbox-gl": "1.13.1",
101101
"mouse-change": "^1.4.0",
102102
"mouse-event-offset": "^3.0.2",
103103
"mouse-wheel": "^1.2.0",

src/plots/mapbox/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var sortObjectKeys = require('../../lib/sort_object_keys');
44

5-
var requiredVersion = '1.13.1';
5+
var requiredVersion = '1.13.4';
66

77
var OSM = '© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';
88
var carto = [
@@ -183,7 +183,7 @@ module.exports = {
183183

184184
wrongVersionErrorMsg: [
185185
'Your custom plotly.js bundle is not using the correct mapbox-gl version',
186-
'Please install mapbox-gl@' + requiredVersion + '.'
186+
'Please install @plotly/mapbox-gl@' + requiredVersion + '.'
187187
].join('\n'),
188188

189189
noAccessTokenErrorMsg: [

src/plots/mapbox/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var mapboxgl = require('mapbox-gl/dist/mapbox-gl-unminified');
3+
var mapboxgl = require('@plotly/mapbox-gl/dist/mapbox-gl-unminified');
44

55
var Lib = require('../../lib');
66
var strTranslate = Lib.strTranslate;

src/plots/mapbox/mapbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var mapboxgl = require('mapbox-gl/dist/mapbox-gl-unminified');
3+
var mapboxgl = require('@plotly/mapbox-gl/dist/mapbox-gl-unminified');
44

55
var Lib = require('../../lib');
66
var geoUtils = require('../../lib/geo_location_utils');

0 commit comments

Comments
 (0)