private void AddJumpPin(MapLocation location, bool hasMultiplePins) { Pin pin = new CustomMapPin { Position = new Position(location.Latitude, location.Longitude), Label = Math.Round(location.Jump.Airtime, 3) + "s", IsJumpPin = true, Rotation = hasMultiplePins ? 30 : 0, }; map.Pins.Add(pin); }
private void AddMaxSpeedPin(MapLocation location, bool hasMultiplePins) { Pin pin = new CustomMapPin { Position = new Position(location.Latitude, location.Longitude), Label = Math.Round(location.Mph, 1) + " mph", IsSpeedPin = true, Rotation = hasMultiplePins ? 330 : 0, }; map.Pins.Add(pin); }