Skip to content

Commit

Permalink
mapbox: handle map move on 'moveend' only
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
etpinard committed Sep 2, 2016
1 parent f07a274 commit 24a5ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plots/mapbox/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ proto.createMap = function(calcData, fullLayout, resolve, reject) {
});

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

opts._input.center = opts.center = view.center;
Expand Down

0 comments on commit 24a5ac8

Please sign in to comment.