mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Improved MapProjection.Center handling
This commit is contained in:
parent
f52281ba85
commit
123a9916eb
5 changed files with 32 additions and 11 deletions
|
|
@ -25,6 +25,7 @@ namespace MapControl.Projections
|
|||
public class GeoApiProjection : MapProjection
|
||||
{
|
||||
private ICoordinateSystem coordinateSystem;
|
||||
private Location center;
|
||||
private double scaleFactor;
|
||||
private string bboxFormat;
|
||||
|
||||
|
|
@ -100,6 +101,10 @@ namespace MapControl.Projections
|
|||
Type = MapProjectionType.TransverseCylindrical;
|
||||
}
|
||||
|
||||
Center = new Location(
|
||||
centralParallel != null ? centralParallel.Value : 0d,
|
||||
centralMeridian != null ? centralMeridian.Value : 0d);
|
||||
|
||||
scaleFactor = 1d;
|
||||
bboxFormat = "{0},{1},{2},{3}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue