public MapsPage(Fountain selectedFountain) { InitializeComponent(); double longitude = Convert.ToDouble(selectedFountain.x_coord); double latitude = Convert.ToDouble(selectedFountain.y_coord); AppMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(latitude, longitude), Distance.FromMiles(.05))); AddDummyPinFountain(latitude, longitude); }
async public void GetCurrentLocation() { var request = new GeolocationRequest(GeolocationAccuracy.High); var location = await Geolocation.GetLocationAsync(request).ConfigureAwait(true); if (location != null) { AppMap.MoveToRegion( MapSpan.FromCenterAndRadius(new Position(33.129148, -117.159134 /*location.Latitude, location.Longitude*/), Distance.FromMiles(.25))); } }
public MapsPage(IEnumerable <Fountain> favFountainList) { InitializeComponent(); // TODO Fix Coords to currrent location - currently hardcoded for demo purposes favoriteFountains = favFountainList; AppMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(33.129148, -117.159134), Distance.FromMiles(.25))); int count = 0; foreach (Fountain fountain in globals.Globals.allFountList) { AddDummyPinFountain((Convert.ToDouble(fountain.y_coord)), (Convert.ToDouble(fountain.x_coord))); } }
public MapsPage(double latitude, double longitude) { InitializeComponent(); AppMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(latitude, longitude), Distance.FromMiles(.05))); AddDummyPinBottle(latitude, longitude); }