mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update GroundOverlay.cs
This commit is contained in:
parent
fe18d0fc3a
commit
86ea5887a7
|
|
@ -31,15 +31,15 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
private class ImageOverlay
|
private class ImageOverlay
|
||||||
{
|
{
|
||||||
public ImageOverlay(string imagePath, BoundingBox boundingBox, int zIndex)
|
public ImageOverlay(string imagePath, LatLonBox latLonBox, int zIndex)
|
||||||
{
|
{
|
||||||
ImagePath = imagePath;
|
ImagePath = imagePath;
|
||||||
BoundingBox = boundingBox;
|
LatLonBox = latLonBox;
|
||||||
ZIndex = zIndex;
|
ZIndex = zIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string ImagePath { get; }
|
public string ImagePath { get; }
|
||||||
public BoundingBox BoundingBox { get; }
|
public LatLonBox LatLonBox { get; }
|
||||||
public int ZIndex { get; }
|
public int ZIndex { get; }
|
||||||
public ImageSource ImageSource { get; set; }
|
public ImageSource ImageSource { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -101,7 +101,7 @@ namespace MapControl
|
||||||
};
|
};
|
||||||
|
|
||||||
image.SetValue(Canvas.ZIndexProperty, imageOverlay.ZIndex);
|
image.SetValue(Canvas.ZIndexProperty, imageOverlay.ZIndex);
|
||||||
SetBoundingBox(image, imageOverlay.BoundingBox);
|
SetBoundingBox(image, imageOverlay.LatLonBox);
|
||||||
Children.Add(image);
|
Children.Add(image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue