Update ArcGISRuntime.md

This commit is contained in:
Morten Nielsen 2020-07-22 08:42:40 -07:00 committed by GitHub
parent bbc7cb3589
commit 826d062569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,8 +39,8 @@ namespace NmeaParser.ArcGIS
{
LocationChanged?.Invoke(this, new LocationInfo()
{
Course = rmc.Course,
Speed = rmc.Speed,
Course = double.IsNaN(rmc.Course) ? 0 : rmc.Course, // Current ArcGIS Runtime limitation that course can't be NaN
Speed = double.IsNaN(rmc.Speed) ? 0 : rmc.Speed,
Location = new MapPoint(rmc.Longitude, rmc.Latitude, SpatialReferences.Wgs84)
});
}