Exemple #1
0
        private void RetrieveMerchantLocations()
        {
            MapIcons = new List <MapIcon>();

            MapIcons.Add(CreateMerchantMarker(Establishment));

            var landmarkLayer = new MapElementsLayer
            {
                ZIndex      = 0,
                MapElements = new List <MapElement>(MapIcons)
            };

            MerchantMarkers.Add(landmarkLayer);
        }
Exemple #2
0
        private async void RetrieveMerchantLocations()
        {
            Establishments = await NetworkAPI.GetAllEstablishments();

            MapIcons = new List <MapIcon>();

            foreach (Establishment e in Establishments)
            {
                MapIcons.Add(CreateMerchantMarker(e));
            }

            var landmarkLayer = new MapElementsLayer
            {
                ZIndex      = 0,
                MapElements = new List <MapElement>(MapIcons)
            };

            MerchantMarkers.Add(landmarkLayer);
        }