mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Version 4.4.1: MapPolygon for UWP in progress
This commit is contained in:
parent
946713b8eb
commit
2f828fbe2d
7 changed files with 64 additions and 30 deletions
|
|
@ -63,9 +63,9 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
protected MapShape()
|
||||
protected MapShape(Geometry data)
|
||||
{
|
||||
Data = new PathGeometry();
|
||||
Data = data;
|
||||
|
||||
MapPanel.InitMapElement(this);
|
||||
}
|
||||
|
|
@ -88,13 +88,18 @@ namespace MapControl
|
|||
return point;
|
||||
}
|
||||
|
||||
protected Point LocationToViewportPoint(Location location)
|
||||
{
|
||||
return parentMap.MapProjection.ViewportTransform.Transform(LocationToPoint(location));
|
||||
}
|
||||
|
||||
protected double GetLongitudeOffset()
|
||||
{
|
||||
var longitudeOffset = 0d;
|
||||
|
||||
if (parentMap.MapProjection.IsContinuous && Location != null)
|
||||
{
|
||||
var viewportPosition = parentMap.MapProjection.LocationToViewportPoint(Location);
|
||||
var viewportPosition = LocationToViewportPoint(Location);
|
||||
|
||||
if (viewportPosition.X < 0d || viewportPosition.X > parentMap.RenderSize.Width ||
|
||||
viewportPosition.Y < 0d || viewportPosition.Y > parentMap.RenderSize.Height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue