mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Fixed MapProjection.Center
This commit is contained in:
parent
eb5b76d78a
commit
f841e42e39
4 changed files with 15 additions and 21 deletions
|
|
@ -734,10 +734,7 @@ namespace MapControl
|
|||
var viewScale = ViewTransform.ZoomLevelToScale(ZoomLevel);
|
||||
var projection = MapProjection;
|
||||
|
||||
if (projection.Type == MapProjectionType.Azimuthal)
|
||||
{
|
||||
projection.Center = ProjectionCenter ?? Center;
|
||||
}
|
||||
projection.Center = ProjectionCenter ?? Center;
|
||||
|
||||
var mapCenter = projection.LocationToMap(transformCenter ?? Center);
|
||||
|
||||
|
|
@ -770,10 +767,7 @@ namespace MapControl
|
|||
{
|
||||
ResetTransformCenter();
|
||||
|
||||
if (projection.Type == MapProjectionType.Azimuthal)
|
||||
{
|
||||
projection.Center = ProjectionCenter ?? Center;
|
||||
}
|
||||
projection.Center = ProjectionCenter ?? Center;
|
||||
|
||||
mapCenter = projection.LocationToMap(center);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue