How to get extent of the currently visible map? #2167
-
So I'm making an app, that will download the tiles with BruTile. I need to pass the extent, resolution etc. of the map. I tried to get the extent via Mapsui.Map.Extent property, but I get everytime the same result: Can anyone give me some insight with this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The Map.Extent contains the extent of the static map definition, so the extent over all data in the layers. The Viewport is the dynamic visible window. You can get the extent with: |
Beta Was this translation helpful? Give feedback.
The Map.Extent contains the extent of the static map definition, so the extent over all data in the layers. The Viewport is the dynamic visible window. You can get the extent with:
Map.Navigator.Viewport.ToExtent();