Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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)));
            }
        }
Ejemplo n.º 3
0
        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)));
            }
        }
Ejemplo n.º 4
0
 public MapsPage(double latitude, double longitude)
 {
     InitializeComponent();
     AppMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(latitude, longitude), Distance.FromMiles(.05)));
     AddDummyPinBottle(latitude, longitude);
 }