mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Comments
This commit is contained in:
parent
ec99fc0cf7
commit
0f3635b97a
|
|
@ -172,6 +172,9 @@ namespace MapControl
|
||||||
|
|
||||||
foreach (var tileMatrix in tileMatrixes)
|
foreach (var tileMatrix in tileMatrixes)
|
||||||
{
|
{
|
||||||
|
// Reuse existing WmtsTileMatrixLayer or create a new one with the
|
||||||
|
// index of tileMatrix in tileMatrixSet.TileMatrixes as zoom level.
|
||||||
|
//
|
||||||
var layer = childLayers.FirstOrDefault(layer => layer.WmtsTileMatrix == tileMatrix) ??
|
var layer = childLayers.FirstOrDefault(layer => layer.WmtsTileMatrix == tileMatrix) ??
|
||||||
new WmtsTileMatrixLayer(tileMatrix, tileMatrixSet.TileMatrixes.IndexOf(tileMatrix));
|
new WmtsTileMatrixLayer(tileMatrix, tileMatrixSet.TileMatrixes.IndexOf(tileMatrix));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public class WmtsTileMatrixLayer : Panel
|
public class WmtsTileMatrixLayer : Panel
|
||||||
{
|
{
|
||||||
// zoomLevel is index of tileMatrix in a WmtsTileMatrixSet.TileMatrixes list.
|
|
||||||
//
|
|
||||||
public WmtsTileMatrixLayer(WmtsTileMatrix wmtsTileMatrix, int zoomLevel)
|
public WmtsTileMatrixLayer(WmtsTileMatrix wmtsTileMatrix, int zoomLevel)
|
||||||
{
|
{
|
||||||
this.SetRenderTransform(new MatrixTransform());
|
this.SetRenderTransform(new MatrixTransform());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue