mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Fixed WMS feature info request
This commit is contained in:
parent
c17cbe297f
commit
91f1960a00
6 changed files with 34 additions and 63 deletions
|
|
@ -49,8 +49,6 @@ namespace MapControl
|
|||
|
||||
private Location transformCenter;
|
||||
private Point viewCenter;
|
||||
private Rect? mapBounds;
|
||||
private BoundingBox geoBounds;
|
||||
private double centerLongitude;
|
||||
private double maxLatitude = 85.05112878; // default WebMercatorProjection
|
||||
private bool internalPropertyChange;
|
||||
|
|
@ -172,27 +170,6 @@ namespace MapControl
|
|||
set => SetValue(TargetHeadingProperty, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the map viewport bounds in projected map coordinates.
|
||||
/// </summary>
|
||||
public Rect MapBounds
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!mapBounds.HasValue)
|
||||
{
|
||||
mapBounds = ViewRectToMap(0d, 0d, ActualWidth, ActualHeight);
|
||||
}
|
||||
|
||||
return mapBounds.Value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the map viewport bounds in geographic coordinates.
|
||||
/// </summary>
|
||||
public BoundingBox GeoBounds => geoBounds ??= MapProjection.MapToBoundingBox(MapBounds);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ViewTransform instance that is used to transform between projected
|
||||
/// map coordinates and view coordinates.
|
||||
|
|
@ -575,10 +552,6 @@ namespace MapControl
|
|||
protected override void OnViewportChanged(ViewportChangedEventArgs e)
|
||||
{
|
||||
base.OnViewportChanged(e);
|
||||
|
||||
mapBounds = null;
|
||||
geoBounds = null;
|
||||
|
||||
ViewportChanged?.Invoke(this, e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue