我創建了一個MapIcon,並使用Image屬性從項目中插入了一個圖像,但我看不到圖像,甚至是佔位符的名稱。 我錯在哪裏?如何顯示MapIcon的圖像?
MapLocationFinderResult result = await MapLocationFinder.FindLocationsAsync(muss.Indirizzo,null);
Geopoint posizione1 = result.Locations.FirstOrDefault().Point;
MapIcon arrivo = new MapIcon();
arrivo.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Flag.png"));
arrivo.Location = posizione1;
arrivo.Title = muss.NomeMuseo;
MyMap.MapElements.Add(arrivo);
你確定圖像的名稱和位置?確保資產文件夾中有圖像。 – Kulasangar 2015-02-10 11:14:10
我再次檢查,圖像的名稱是正確的。該圖像位於Assets文件夾中,幷包含在項目中 – SMM 2015-02-10 16:46:43
使用#UWP CSharp映射控件並獲取當前位置https://youtu.be/xJveKt99MXY使用自定義圖像 – Sender 2016-06-22 16:58:17