public GeoMapView(EbMapBinding binding)
        {
            InitializeComponent();

            BindingContext = binding;

            if (binding.Location != null)
            {
                GMapControl.SetLocation(binding.Location.Latitude, binding.Location.Longitude);
            }
        }
Exemple #2
0
        private async Task ShowMapFullScreen()
        {
            EbGeoLocation loc = new EbGeoLocation();

            if (Cordinates != null)
            {
                loc.Latitude  = Cordinates.Latitude;
                loc.Longitude = Cordinates.Longitude;
            }

            EbMapBinding binding = new EbMapBinding
            {
                Location      = loc,
                ResultCommand = new Command <EbGeoLocation>(async(obj) => await GetResult(obj))
            };

            await App.Navigation.NavigateModalByRenderer(new GeoMapView(binding));
        }