Example #1
0
        public static bool MapTrip(List <Trip> trips)
        {
            var trackHandles = new List <int>();
            var pointHandles = new List <int>();
            var sf           = ShapefileFactory.TrackFromTrip(trips, out trackHandles);
            var pointSF      = ShapefileFactory.PointsFromTrips(trips, out pointHandles);

            MapInteractionHandler.MapLayersHandler.AddLayer(sf, "Track", uniqueLayer: true, layerKey: sf.Key);
            MapInteractionHandler.MapLayersHandler.AddLayer(pointSF, "Waypoints", uniqueLayer: true, layerKey: sf.Key);
            TrackShapefile     = sf;
            WaypointsShapefile = pointSF;
            return(sf != null);
        }