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); }
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); }