Exemple #1
0
        private void InitializeMap(GeoPosition position)
        {
            _walkedPathLayer = new WalkedPathLayer(VisitedWaypoints, Consts.WalkedPathLayerName);
            _mapView.AddLayer(_walkedPathLayer);

            _positionLayer = new PositionLayer(position, new SymbolStyle
            {
                Fill        = new Brush(Color.FromString("#3366CC")),
                SymbolScale = 0.25,
                SymbolType  = SymbolType.Ellipse
            });
            _mapView.AddLayer(_positionLayer);

            _mapView.AddLayer(new PointOfInterestLayer(_route.Waypoints.OfType <PointOfInterest>()));

            _expectedPositionLayer = new PositionLayer(GetLastWayPoint(), new SymbolStyle
            {
                BitmapId      = GetBitMap("FamilieWandelPad.Assets.navigationArrow.svg"),
                SymbolScale   = 0.075,
                RotateWithMap = true
            });
            _mapView.AddLayer(_expectedPositionLayer);

            UpdateMap(position, GetLastWayPoint(), false);
        }
Exemple #2
0
 public static IStyle CreateLineStringStyle()
 {
     return(new VectorStyle
     {
         Fill = null,
         Outline = null,
         Line = { Color = Color.FromString("Red"), Width = 4 }
     });
 }