sdrweb: fix map errors

This commit is contained in:
Astro 2021-10-31 00:10:21 +02:00
parent f410efaa1b
commit e3886c1b7c
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@
if (Planes[plane.hex]) {
var myplane = Planes[plane.hex];
marker = myplane.marker;
marker.setLatLng([plane.lat,plane.lon]);
if (plane.lat && plane.lon)
marker.setLatLng([plane.lat,plane.lon]);
marker.setIcon(getIconForPlane(plane));
myplane.altitude = plane.altitude;
myplane.speed = plane.speed;