Skip to content

Commit 24a5ac8

Browse files
committed
mapbox: handle map move on 'moveend' only
- no need map mapbox opts to layout.mapbox and fire events at each step during the move, handling this at the end works just fine for our needs.
1 parent f07a274 commit 24a5ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/mapbox/mapbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ proto.createMap = function(calcData, fullLayout, resolve, reject) {
125125
});
126126

127127
// keep track of pan / zoom in user layout and emit relayout event
128-
map.on('move', function() {
128+
map.on('moveend', function() {
129129
var view = self.getView();
130130

131131
opts._input.center = opts.center = view.center;

0 commit comments

Comments
 (0)