mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Version 5.0: Separated map projection and view transform.
This commit is contained in:
parent
53723844a0
commit
c7cb2efcdb
47 changed files with 401 additions and 382 deletions
|
|
@ -104,14 +104,14 @@ namespace MapControl
|
|||
{
|
||||
foreach (var layer in ChildLayers)
|
||||
{
|
||||
layer.SetRenderTransform(ParentMap.MapProjection);
|
||||
layer.SetRenderTransform(ParentMap.ViewTransform);
|
||||
}
|
||||
}
|
||||
|
||||
private bool UpdateChildLayers(WmtsTileMatrixSet tileMatrixSet)
|
||||
{
|
||||
var layersChanged = false;
|
||||
var maxScale = 1.001 * ParentMap.MapProjection.ViewportScale; // avoid rounding issues
|
||||
var maxScale = 1.001 * ParentMap.ViewTransform.Scale; // avoid rounding issues
|
||||
|
||||
// show all TileMatrix layers with Scale <= maxScale, at least the first layer
|
||||
//
|
||||
|
|
@ -142,7 +142,7 @@ namespace MapControl
|
|||
layersChanged = true;
|
||||
}
|
||||
|
||||
if (layer.SetBounds(ParentMap.MapProjection, ParentMap.RenderSize))
|
||||
if (layer.SetBounds(ParentMap.ViewTransform, ParentMap.RenderSize))
|
||||
{
|
||||
layersChanged = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue