mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
MapBase.InsideViewBounds
This commit is contained in:
parent
02e138eb7c
commit
6a4046a838
3 changed files with 5 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ namespace MapControl
|
|||
var position = parentMap.LocationToView(location);
|
||||
|
||||
if (parentMap.MapProjection.Type <= MapProjectionType.NormalCylindrical &&
|
||||
position.HasValue && !parentMap.InsideViewport(position.Value))
|
||||
position.HasValue && !parentMap.InsideViewBounds(position.Value))
|
||||
{
|
||||
var coercedPosition = parentMap.LocationToView(
|
||||
new Location(location.Latitude, parentMap.CoerceLongitude(location.Longitude)));
|
||||
|
|
@ -225,7 +225,7 @@ namespace MapControl
|
|||
var projection = parentMap.MapProjection;
|
||||
|
||||
if (projection.Type <= MapProjectionType.NormalCylindrical &&
|
||||
!parentMap.InsideViewport(position))
|
||||
!parentMap.InsideViewBounds(position))
|
||||
{
|
||||
var location = projection.MapToLocation(center);
|
||||
|
||||
|
|
@ -261,7 +261,7 @@ namespace MapControl
|
|||
|
||||
if (GetAutoCollapse(element))
|
||||
{
|
||||
SetVisible(element, position.HasValue && parentMap.InsideViewport(position.Value));
|
||||
SetVisible(element, position.HasValue && parentMap.InsideViewBounds(position.Value));
|
||||
}
|
||||
|
||||
if (position.HasValue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue