This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/MobileApps/MyDriving/MyDriving.iOS/Views/Maps/TripMapView.cs
2022-11-03 16:41:13 -04:00

21 lines
503 B
C#

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
using CoreLocation;
using MapKit;
namespace MyDriving.iOS
{
public partial class TripMapView : MKMapView
{
public TripMapView(IntPtr handle) : base(handle)
{
}
public void DrawRoute(CLLocationCoordinate2D[] route)
{
AddOverlay(MKPolyline.FromCoordinates(route));
}
}
}