public CustomPin() { setter = SetFrom.None; Name = ""; Details = ""; ImagePath = ""; PinSize = 50; PinZoomVisibilityMinimumLimit = uint.MinValue; PinZoomVisibilityMaximumLimit = uint.MaxValue; AnchorPoint = new Point(0.5, 1); PinClickedCallback = null; Id = ""; }
private async void SetLocation(Position location) { if (setter == SetFrom.None) { setter = SetFrom.Location; SetAddress(await CustomMap.GetAddressName(location)); setter = SetFrom.None; NotifyChanges(); } else if (setter == SetFrom.Address) { setter = SetFrom.Done; SetValue(LocationProperty, location); } }