Exemplo n.º 1
0
        public MapTile()
        {
            _mapLayout = new AbsoluteLayout();
            AbsoluteLayout.SetLayoutFlags(this, AbsoluteLayoutFlags.All);
            AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0f, 0f, 1f, 1f));
            _mapLayout.Children.Add(this);

            mapPinDetail = new MapPinDetail();
            mapPinDetail.IsVisible = false;

            AbsoluteLayout.SetLayoutFlags(mapPinDetail, AbsoluteLayoutFlags.All);
            AbsoluteLayout.SetLayoutBounds(mapPinDetail, new Rectangle(0f, 0f, 1f, 1f));
            
            _mapLayout.Children.Add(mapPinDetail);
        }
Exemplo n.º 2
0
        public MapTile()
        {
            _mapLayout = new AbsoluteLayout();
            AbsoluteLayout.SetLayoutFlags(this, AbsoluteLayoutFlags.All);
            AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0f, 0f, 1f, 1f));
            _mapLayout.Children.Add(this);

            mapPinDetail           = new MapPinDetail();
            mapPinDetail.IsVisible = false;

            AbsoluteLayout.SetLayoutFlags(mapPinDetail, AbsoluteLayoutFlags.All);
            AbsoluteLayout.SetLayoutBounds(mapPinDetail, new Rectangle(0f, 0f, 1f, 1f));

            _mapLayout.Children.Add(mapPinDetail);
        }
Exemplo n.º 3
0
        public MapTile()
        {
            MapLayout = new AbsoluteLayout();

            AbsoluteLayout.SetLayoutFlags(this, AbsoluteLayoutFlags.All);
            AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0f, 0f, 1f, 1f));

            MapPinDetail = new MapPinDetail
            {
                IsVisible = false
            };

            AbsoluteLayout.SetLayoutFlags(MapPinDetail, AbsoluteLayoutFlags.PositionProportional);
            AbsoluteLayout.SetLayoutBounds(MapPinDetail,
                                           new Rectangle(0.5, 0.5, AbsoluteLayout.AutoSize, AbsoluteLayout.AutoSize));

            MapLayout.Children.Add(this);
            MapLayout.Children.Add(MapPinDetail);
        }
Exemplo n.º 4
0
        public MapTile(RootContentUI contentUI)
            : base(MapSpan.FromCenterAndRadius(new Position(MinskLat, MinskLong), Distance.FromKilometers(5)))
        {
            ContentUI = contentUI;

            MapLayout = new AbsoluteLayout();

            AbsoluteLayout.SetLayoutFlags(this, AbsoluteLayoutFlags.All);
            AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0f, 0f, 1f, 1f));

            MapPinDetail = new MapPinDetail(contentUI)
            {
                IsVisible = false
            };

            AbsoluteLayout.SetLayoutFlags(MapPinDetail, AbsoluteLayoutFlags.PositionProportional);
            AbsoluteLayout.SetLayoutBounds(MapPinDetail,
                                           new Rectangle(0.5, 0.5, AbsoluteLayout.AutoSize, AbsoluteLayout.AutoSize));

            MapLayout.Children.Add(this);
            MapLayout.Children.Add(MapPinDetail);
        }