Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db912f5

Browse files
committed
add click handler
1 parent 09bdc60 commit db912f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plots/mapbox/mapbox.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ proto.createMap = function(fullData, fullLayout, resolve) {
122122
Fx.hover(gd, evt, self.id);
123123
});
124124

125+
map.on('click', function() {
126+
Fx.click(gd, { target: true });
127+
});
128+
125129
function unhover() {
126130
Fx.loneUnhover(fullLayout._toppaper);
127131
}

0 commit comments

Comments
 (0)