OSM: fix icon rotation.

This commit is contained in:
antirez 2020-02-02 23:02:56 +01:00
parent 7df4e87994
commit e328c75010

View File

@ -58,7 +58,7 @@
var he = document.createElement("P");
he.innerHTML = '>';
var rotation = plane.track+90;
var rotation = 45+360-plane.track;
he = '<div style="transform: rotate(-'+rotation+'deg);">✈️</div>';
var icon = L.divIcon({html: he, className: 'plane-icon'});
return icon;