We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e89eb06 commit 5427dc0Copy full SHA for 5427dc0
src/plots/mapbox/mapbox.js
@@ -315,14 +315,16 @@ proto.updateData = function(calcData) {
315
trace = calcTrace[0].trace;
316
traceObj = traceHash[trace.uid];
317
318
+ var didUpdate = false;
319
if(traceObj) {
320
if(traceObj.type === trace.type) {
321
traceObj.update(calcTrace);
322
+ didUpdate = true;
323
} else {
324
traceObj.dispose();
- traceHash[trace.uid] = trace._module.plot(this, calcTrace);
325
}
- } else if(trace._module) {
326
+ }
327
+ if(!didUpdate && trace._module) {
328
traceHash[trace.uid] = trace._module.plot(this, calcTrace);
329
330
0 commit comments