We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2623f commit cacf1e9Copy full SHA for cacf1e9
1 file changed
src/plots/mapbox/mapbox.js
@@ -755,19 +755,18 @@ proto.getView = function() {
755
var canvas = map.getCanvas();
756
var w = canvas.width;
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
return {
765
center: center,
766
zoom: map.getZoom(),
767
bearing: map.getBearing(),
768
pitch: map.getPitch(),
769
_derived: {
770
- coordinates: coordinates
+ coordinates: [
+ map.unproject([0, 0]).toArray(),
+ map.unproject([w, 0]).toArray(),
+ map.unproject([w, h]).toArray(),
+ map.unproject([0, h]).toArray()
+ ]
771
}
772
};
773
0 commit comments