mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Update panoramax_images.js
Fixing a bug with heading
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user