Skip to content

Commit 0822254

Browse files
committed
add console.warn when using mapbox subplots
1 parent 2b51c41 commit 0822254

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/plots/mapbox/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ exports.layoutAttributes = require('./layout_attributes');
4949

5050
exports.supplyLayoutDefaults = require('./layout_defaults');
5151

52+
var firstPlot = true;
53+
5254
exports.plot = function plot(gd) {
55+
if(firstPlot) {
56+
firstPlot = false;
57+
console.warn(deprecationWarning);
58+
}
59+
5360
var fullLayout = gd._fullLayout;
5461
var calcData = gd.calcdata;
5562
var mapboxIds = fullLayout._subplots[MAPBOX];

0 commit comments

Comments
 (0)