mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.12.1 Added AutoEquirectangularProjection
This commit is contained in:
parent
0a3ae81117
commit
bd9a16e921
17 changed files with 174 additions and 140 deletions
|
|
@ -161,10 +161,10 @@ namespace MapControl
|
|||
private string GetBoundingBoxUri(int x, int y, int zoomLevel)
|
||||
{
|
||||
var tileSize = 360d / (1 << zoomLevel); // tile width in degrees
|
||||
var west = MapProjection.MetersPerDegree * (x * tileSize - 180d);
|
||||
var east = MapProjection.MetersPerDegree * ((x + 1) * tileSize - 180d);
|
||||
var south = MapProjection.MetersPerDegree * (180d - (y + 1) * tileSize);
|
||||
var north = MapProjection.MetersPerDegree * (180d - y * tileSize);
|
||||
var west = MapProjection.Wgs84MetersPerDegree * (x * tileSize - 180d);
|
||||
var east = MapProjection.Wgs84MetersPerDegree * ((x + 1) * tileSize - 180d);
|
||||
var south = MapProjection.Wgs84MetersPerDegree * (180d - (y + 1) * tileSize);
|
||||
var north = MapProjection.Wgs84MetersPerDegree * (180d - y * tileSize);
|
||||
|
||||
return uriFormat
|
||||
.Replace("{W}", west.ToString(CultureInfo.InvariantCulture))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue