Beispiel #1
0
 void AddPins(IEnumerable pins)
 {
     foreach (Pin pin in pins)
     {
         var coordinates = new Geocoordinates(pin.Position.Latitude, pin.Position.Longitude);
         var nativePin   = new TPin(coordinates);
         nativePin.Clicked += (s, e) =>
         {
             pin.SendTap();
         };
         Control.Add(nativePin);
         _pins.Add(pin, nativePin);
     }
 }
Beispiel #2
0
 void AddPins(IEnumerable pins)
 {
     foreach (Pin pin in pins)
     {
         pin.PropertyChanged += PinOnPropertyChanged;
         var coordinates = new Geocoordinates(pin.Position.Latitude, pin.Position.Longitude);
         var nativePin   = new TPin(coordinates);
         pin.MarkerId       = nativePin;
         nativePin.Clicked += (s, e) =>
         {
             pin.SendMarkerClick();
         };
         Control.Add(nativePin);
         _pins.Add(pin);
     }
 }
Beispiel #3
0
        void AddPins(IEnumerable pins)
        {
            foreach (Pin pin in pins)
            {
                pin.PropertyChanged += PinOnPropertyChanged;
                var coordinates = new Geocoordinates(pin.Position.Latitude, pin.Position.Longitude);
                var nativePin   = new TPin(coordinates);
                pin.MarkerId       = nativePin;
                nativePin.Clicked += (s, e) =>
                {
#pragma warning disable CS0618
                    pin.SendTap();
#pragma warning restore CS0618
                };
                Control.Add(nativePin);
                _pins.Add(pin);
            }
        }