Update panoramax_images.js

Fixing a bug with heading
This commit is contained in:
Mattia Pezzotti
2024-07-13 13:03:36 +02:00
committed by GitHub
parent e195947509
commit ab69c4a384

View File

@@ -136,7 +136,7 @@ export function svgPanoramaxImages(projection, context, dispatch) {
function transform(d) {
let t = svgPointTransform(projection)(d);
var rot = d.heading + _viewerYaw;
if (rot && !isNaN(rot)) {
if (rot) {
t += ' rotate(' + Math.floor(rot) + ',0,0)';
}
return t;