Esempio n. 1
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            if (CWITC_Map.Pins.Count > 0)
            {
                return;
            }

            var position = new Position(vm.Latitude, vm.Longitude);

            CWITC_Map.MoveToRegion(new MapSpan(position, 0.02, 0.02));
            CWITC_Map.Pins.Add(new Pin
            {
                Type     = PinType.Place,
                Address  = vm.LocationTitle,
                Label    = vm.EventTitle,
                Position = position
            });
        }
Esempio n. 2
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            if (CWITC_Map.Pins.Count > 0)
            {
                return;
            }

            var position = new Position(ViewModel.Location.Latitude, ViewModel.Location.Longitude);

            CWITC_Map.MoveToRegion(new MapSpan(position, 0.02, 0.02));
            CWITC_Map.Pins.Add(new Pin
            {
                Type     = PinType.Place,
                Address  = $"{ViewModel.Location.Address1} {ViewModel.Location.Address1}",
                Label    = ViewModel.Location.Name,
                Position = position
            });
        }