mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Replace Path.GetFullPath
This commit is contained in:
parent
7b69215a30
commit
a342f98334
3 changed files with 9 additions and 4 deletions
|
|
@ -131,7 +131,8 @@ namespace MapControl
|
|||
{
|
||||
using (var archive = await Task.Run(() => ZipFile.OpenRead(archiveFilePath)))
|
||||
{
|
||||
var docEntry = await Task.Run(() => archive.GetEntry("doc.kml") ?? archive.Entries.FirstOrDefault(e => e.Name.EndsWith(".kml")));
|
||||
var docEntry = await Task.Run(() => archive.GetEntry("doc.kml")
|
||||
?? archive.Entries.FirstOrDefault(e => e.Name.EndsWith(".kml")));
|
||||
|
||||
if (docEntry == null)
|
||||
{
|
||||
|
|
@ -173,7 +174,8 @@ namespace MapControl
|
|||
|
||||
private static async Task<IEnumerable<ImageOverlay>> ReadGroundOverlaysFromFileAsync(string docFilePath)
|
||||
{
|
||||
docFilePath = Path.GetFullPath(docFilePath);
|
||||
docFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, docFilePath);
|
||||
|
||||
var docUri = new Uri(docFilePath);
|
||||
|
||||
var imageOverlays = await Task.Run(() =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue