Simplified MapProjection

This commit is contained in:
ClemensFischer 2024-09-08 14:03:55 +02:00
parent eb046d97ad
commit 03ac94a002
6 changed files with 76 additions and 82 deletions

View file

@ -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));
}
}