public SecondViewModel()
 {
     Han = new Zombie()
         {
             Name = "Han",
             Location = new Location()
                 {
                     Lat = 51.4,
                     Lng = 0.4
                 },
         };
 }
 private void AddZombie()
 {
     var zombie = new Zombie()
         {
             Name = "Zomby" + _yarp.Count,
             Location = new Location()
                 {
                     Lat = 51.4,
                     Lng = 0.4
                 },
         };
     _yarp.Add(zombie);
 }
 public FirstViewModel()
 {
     Helen = new Zombie()
         {
             Name = "Helen",
             Location = new Location()
                 {
                     Lat = 51.4,
                     Lng = 0.4
                 },
         };
     Keith = new Zombie()
     {
         IsMale = true,
         Name = "Keith",
         Location = new Location()
         {
             Lat = 51.5,
             Lng = 0.3
         }
     };
 }
 public ZombieAnnotation(Zombie zombie)
 {
     _zombie = zombie;
 }
 public ZombieAnnotation(Zombie zombie)
 {
     _zombie = zombie;
     UpdateLocation();
     _zombie.WeakSubscribe<Zombie>("Location", (s, e) => UpdateLocation());
 }
            public ZombieWrapper(Zombie zombie, Marker marker)
            {
                _zombie = zombie;
                _marker = marker;

                _token = _zombie.WeakSubscribe(OnLocationChanged);
            }
            private void RemoveZombie(Zombie zomby)
            {
                var zombieWrapper = _markerWrappers.FirstOrDefault(mw => mw.Zombie == zomby);
                if (zombieWrapper == null)
                    throw new MvxException("Zombie not found");

                _markerWrappers.Remove(zombieWrapper);
                zombieWrapper.Dispose();
            }
 private void AddZombie(Zombie zomby)
 {
     var options = new MarkerOptions();
     options.SetPosition(new LatLng(zomby.Location.Lat, zomby.Location.Lng));
     options.SetTitle(zomby.Name);
     var marker = _map.AddMarker(options);
     var markerWrapper = new ZombieWrapper(zomby, marker);
     _markerWrappers.Add(markerWrapper);
 }