Skip to content

Commit c1cd50c

Browse files
committed
make sure the bearing and pitch are updated on map move
1 parent 053058a commit c1cd50c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plots/mapbox/mapbox.js

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ proto.createMap = function(calcData, fullLayout, resolve, reject) {
114114
var center = map.getCenter();
115115
opts._input.center = opts.center = { lon: center.lng, lat: center.lat };
116116
opts._input.zoom = opts.zoom = map.getZoom();
117+
opts._input.bearing = opts.bearing = map.getBearing();
118+
opts._input.pitch = opts.pitch = map.getPitch();
117119
});
118120

119121
map.on('mousemove', function(evt) {

0 commit comments

Comments
 (0)