mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
WMTS support for Avalonia
This commit is contained in:
parent
eb990ab9ee
commit
18a2f31fb3
5 changed files with 26 additions and 13 deletions
|
|
@ -15,6 +15,9 @@ using Windows.UI.Xaml.Media;
|
|||
using Windows.Foundation;
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
#elif AVALONIA
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Media;
|
||||
#endif
|
||||
|
||||
namespace MapControl
|
||||
|
|
@ -25,7 +28,8 @@ namespace MapControl
|
|||
//
|
||||
public WmtsTileMatrixLayer(WmtsTileMatrix tileMatrix, int zoomLevel)
|
||||
{
|
||||
RenderTransform = new MatrixTransform();
|
||||
MapPanel.SetRenderTransform(this, new MatrixTransform());
|
||||
|
||||
WmtsTileMatrix = tileMatrix;
|
||||
TileMatrix = new TileMatrix(zoomLevel, 1, 1, 0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue