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() {
755755 var canvas = map . getCanvas ( ) ;
756756 var w = canvas . width ;
757757 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-
764758 return {
765759 center : center ,
766760 zoom : map . getZoom ( ) ,
767761 bearing : map . getBearing ( ) ,
768762 pitch : map . getPitch ( ) ,
769763 _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+ ]
771770 }
772771 } ;
773772} ;
You can’t perform that action at this time.
0 commit comments