public void AddPushpinAndCenterAndZoom(IMappablePoint point, bool animate = true) { var pin = this.AddPushpin(point); // show... var duration = MapAnimationDuration.Default; if (!(animate)) duration = MapAnimationDuration.None; // show... this.InnerMap.SetView(point.ToLocation(), StandardZoom, duration); }
public Pushpin AddPushpin(IMappablePoint point) { // create a pin and set it's position... var pin = new Pushpin(); pin.Text = point.Name; MapLayer.SetPosition(pin, point.ToLocation()); // ...then add it... this.InnerMap.Children.Add(pin); // return... return pin; }
public Pushpin AddPushpin(IMappablePoint point) { // create a pin and set it's position... var pin = new Pushpin(); pin.Text = point.Name; MapLayer.SetPosition(pin, point.ToLocation()); // ...then add it... this.InnerMap.Children.Add(pin); // return... return(pin); }
public void AddPushpinAndCenterAndZoom(IMappablePoint point, bool animate = true) { var pin = this.AddPushpin(point); // show... var duration = MapAnimationDuration.Default; if (!(animate)) { duration = MapAnimationDuration.None; } // show... this.InnerMap.SetView(point.ToLocation(), StandardZoom, duration); }