mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
Simplified MapProjection
This commit is contained in:
parent
eb046d97ad
commit
03ac94a002
6 changed files with 76 additions and 82 deletions
|
|
@ -37,11 +37,11 @@ namespace MapControl
|
|||
|
||||
if (projection != null && items != null)
|
||||
{
|
||||
var rect = projection.BoundingBoxToMap(boundingBox);
|
||||
var mapRect = projection.BoundingBoxToMap(boundingBox);
|
||||
|
||||
if (rect.HasValue)
|
||||
if (mapRect.HasValue)
|
||||
{
|
||||
image = await Task.Run(() => GetImage(projection, rect.Value, items));
|
||||
image = await Task.Run(() => GetImage(projection, mapRect.Value, items));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue