mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Simplified WMS/WMTS layers
This commit is contained in:
parent
afc93704d9
commit
370618f66f
5 changed files with 66 additions and 106 deletions
|
|
@ -201,7 +201,7 @@ namespace MapControl
|
|||
|
||||
private async void OnViewportChanged(object sender, ViewportChangedEventArgs e)
|
||||
{
|
||||
if (Children.Count == 0 || e.ProjectionChanged || e.TransformCenterChanged)
|
||||
if (e.TransformCenterChanged || e.ProjectionChanged || Children.Count == 0)
|
||||
{
|
||||
await Update(); // update immediately
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue