Пример #1
0
        private void HandleAnnotationClick(object sender, ExtendedMapAnnotation e)
        {
            _customMap.SelectedPinAddress = e.Subtitle;

            if (_customMapContentView.Footer.FooterMode == FooterMode.Hidden)
            {
                _customMapContentView.Footer.FooterMode = FooterMode.Minimized;
            }
        }
Пример #2
0
        private void AddPin(ExtendedPin formsPin)
        {
            var nativePin =
                new ExtendedMapAnnotation(new CLLocationCoordinate2D(formsPin.Position.Latitude, formsPin.Position.Longitude),
                                          formsPin.Label, formsPin.Address, formsPin.PinIcon);

            nativePin.Clicked += HandleAnnotationClick;

            _nativeMapView.AddAnnotation(nativePin);
        }