@@ -461,7 +461,7 @@ proto.initFx = function(calcData, fullLayout) {
461
461
optsNow . _input . bearing = optsNow . bearing = viewNow . bearing ;
462
462
optsNow . _input . pitch = optsNow . pitch = viewNow . pitch ;
463
463
464
- gd . emit ( 'plotly_relayout' , self . getViewEdits ( viewNow ) ) ;
464
+ gd . emit ( 'plotly_relayout' , self . getViewEdits ( viewNow , true ) ) ;
465
465
}
466
466
wheeling = false ;
467
467
@@ -509,7 +509,7 @@ proto.initFx = function(calcData, fullLayout) {
509
509
510
510
function emitUpdate ( ) {
511
511
var viewNow = self . getView ( ) ;
512
- gd . emit ( 'plotly_relayouting' , self . getViewEdits ( viewNow ) ) ;
512
+ gd . emit ( 'plotly_relayouting' , self . getViewEdits ( viewNow , true ) ) ;
513
513
}
514
514
515
515
map . on ( 'drag' , emitUpdate ) ;
@@ -532,7 +532,7 @@ proto.initFx = function(calcData, fullLayout) {
532
532
optsNow . _input . pitch = optsNow . pitch = viewNow . pitch ;
533
533
534
534
gd . emit ( 'plotly_doubleclick' , null ) ;
535
- gd . emit ( 'plotly_relayout' , self . getViewEdits ( viewNow ) ) ;
535
+ gd . emit ( 'plotly_relayout' , self . getViewEdits ( viewNow , true ) ) ;
536
536
} ) ;
537
537
538
538
// define event handlers on map creation, to keep one ref per map,
@@ -772,9 +772,12 @@ proto.getView = function() {
772
772
} ;
773
773
} ;
774
774
775
- proto . getViewEdits = function ( cont ) {
775
+ proto . getViewEdits = function ( cont , derived ) {
776
776
var id = this . id ;
777
- var keys = [ 'center' , 'zoom' , 'bearing' , 'pitch' , '_derived' ] ;
777
+ var keys = [ 'center' , 'zoom' , 'bearing' , 'pitch' ] ;
778
+ if ( derived === true ) {
779
+ keys . push ( '_derived' ) ;
780
+ }
778
781
var obj = { } ;
779
782
780
783
for ( var i = 0 ; i < keys . length ; i ++ ) {
0 commit comments