Skip to content

Commit 3ef4863

Browse files
committed
link to _glTrace for hover similar to scattermapbox
1 parent e6c883a commit 3ef4863

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/traces/choroplethmapbox/plot.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ var proto = ChoroplethMapbox.prototype;
2626

2727
proto.update = function(calcTrace) {
2828
this._update(convert(calcTrace));
29+
30+
// link ref for quick update during selections
31+
calcTrace[0].trace._glTrace = this;
2932
};
3033

3134
proto.updateOnSelect = function(calcTrace) {

src/traces/scattermapbox/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ proto.update = function update(calcTrace) {
130130
this.clusterEnabled = hasCluster;
131131
}
132132

133-
// link ref for quick update during selections
133+
// link ref for quick update during selections
134134
calcTrace[0].trace._glTrace = this;
135135
};
136136

0 commit comments

Comments
 (0)