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 ActionResult InsertUserProfile()
        {
            PositionLayer positionLayer = new PositionLayer();
            SourceLayer   sourceLayer   = new SourceLayer();
            UserProfile   userprofile   = new UserProfile();

            userprofile.listPosition = positionLayer.Selectalldata();
            userprofile.listSource   = sourceLayer.Selectalldata();
            return(View(userprofile));
        }
Exemple #3
0
        public ActionResult UpdateUserProfile(string id)
        {
            UserProfileLayer userprofilelayer = new UserProfileLayer();
            PositionLayer    positionLayer    = new PositionLayer();
            SourceLayer      sourceLayer      = new SourceLayer();
            UserProfile      userprofile      = new UserProfile();

            userprofile = userprofilelayer.SelectDatabyID(id);
            userprofile.listPosition = positionLayer.Selectalldata();
            userprofile.listSource   = sourceLayer.Selectalldata();

            return(View(userprofile));
        }