Example #1
0
 public App()
 {
     MainPage       = new LoadingPage();
     MwsRestService = new MwsRestService();
     WorksiteLabel  = new Label {
         IsVisible = false, HorizontalTextAlignment = TextAlignment.Center, FontAttributes = FontAttributes.Bold, FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label))
     };
 }
Example #2
0
        protected override async void OnStart()
        {
            base.OnStart();

            var worksites = await MwsRestService.LatestAtWorksitesAsync();

            var map = new DrawableMap
            {
                MapType         = MapType.Street,
                HeightRequest   = 100,
                WidthRequest    = 960,
                VerticalOptions = LayoutOptions.FillAndExpand,
                Worksites       = worksites
            };

            MainPage = new MapPage(map)
            {
                Title = "Map/Zoom", Icon = "glyphish_74_location.png"
            };
        }