File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -755,19 +755,18 @@ proto.getView = function() {
755
755
var canvas = map . getCanvas ( ) ;
756
756
var w = canvas . width ;
757
757
var h = canvas . height ;
758
- var cUL = map . unproject ( [ 0 , 0 ] ) . toArray ( ) ;
759
- var cUR = map . unproject ( [ w , 0 ] ) . toArray ( ) ;
760
- var cLR = map . unproject ( [ w , h ] ) . toArray ( ) ;
761
- var cLL = map . unproject ( [ 0 , h ] ) . toArray ( ) ;
762
- var coordinates = [ cUL , cUR , cLR , cLL ] ;
763
-
764
758
return {
765
759
center : center ,
766
760
zoom : map . getZoom ( ) ,
767
761
bearing : map . getBearing ( ) ,
768
762
pitch : map . getPitch ( ) ,
769
763
_derived : {
770
- coordinates : coordinates
764
+ coordinates : [
765
+ map . unproject ( [ 0 , 0 ] ) . toArray ( ) ,
766
+ map . unproject ( [ w , 0 ] ) . toArray ( ) ,
767
+ map . unproject ( [ w , h ] ) . toArray ( ) ,
768
+ map . unproject ( [ 0 , h ] ) . toArray ( )
769
+ ]
771
770
}
772
771
} ;
773
772
} ;
You can’t perform that action at this time.
0 commit comments