Skip to content

Commit 845d990

Browse files
committed
avoid mapbox-gl errors
1 parent 6987bc6 commit 845d990

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/traces/scattermapbox/plot.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ proto.update = function update(calcTrace) {
136136
subplot.setOptions(lThis.layerIds[k], 'setLayoutProperty', opts.layout);
137137

138138
if(opts.layout.visibility === 'visible') {
139-
lThis.setSourceData(k, opts);
139+
if(k !== 'cluster') {
140+
lThis.setSourceData(k, opts);
141+
}
140142
subplot.setOptions(lThis.layerIds[k], 'setPaintProperty', opts.paint);
141143
}
142144
}

0 commit comments

Comments
 (0)