コード例 #1
0
        async void Servicioweb_GetPlaceAutoCompleteResponse(object sender, GoogleMapsPlaceAutocomplete.Results e)
        {
            IsBusy      = false;
            map.MapType = MapType.Street;
            map.Pins.Clear();             // = null;
            foreach (var lugares in e.predictions)
            {
                var pin = new Pin()
                {
                    Type     = PinType.Place,
                    Position = new Position(18.4539641, -69.9505628),
                    Label    = lugares.structured_formatting.main_text,
                    Address  = lugares.structured_formatting.secondary_text
                };
                pin.Clicked += Pin_Clicked;
                map.Pins.Add(pin);

                map.MoveToRegion(new MapSpan(
                                     new Position(18.4539641, -69.9505628), latlongdegrees, latlongdegrees));
            }
        }
コード例 #2
0
 async void Servicioweb_GetPlaceAutoCompleteResponse(object sender, GoogleMapsPlaceAutocomplete.Results e)
 {
     IsBusy            = false;
     list.IsRefreshing = false;
     list.ItemsSource  = e.predictions;
 }