From e328c750108572afc33fb9da1917e0c0e10f37ce Mon Sep 17 00:00:00 2001 From: antirez Date: Sun, 2 Feb 2020 23:02:56 +0100 Subject: [PATCH] OSM: fix icon rotation. --- gmap.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmap.html b/gmap.html index b4b3678..e8bde26 100644 --- a/gmap.html +++ b/gmap.html @@ -58,7 +58,7 @@ var he = document.createElement("P"); he.innerHTML = '>'; - var rotation = plane.track+90; + var rotation = 45+360-plane.track; he = '
✈️
'; var icon = L.divIcon({html: he, className: 'plane-icon'}); return icon;