public PhotoViewModel(Photo photo) { SearchRequestId = photo.SearchRequestId; Id = photo.Id; Title = photo.Title; Description = photo.Description; ThumbnailUrl = photo.ThumbnailUrl; ImageUrl = photo.ImageUrl; if (photo.Location != null) Location = new MapLocationViewModel(photo.Location, Title); }
public LocationPageViewModel() { if (IsInDesignMode) { PointOfInterest = new MapLocationViewModel { Label = "ZALANDO Neue Bahnhofstraße 11, 10245 Berlin, Germany", Location = new Geopoint(new BasicGeoposition { Latitude = 52.506984, Longitude = 13.471250 }) }; } }