Hi Jakub,
Greetings from Syncfusion.
Query: Is there a way to get the visible lat/lon bounds of the SfMap Control?
Yes, you can get the visible area bounds of SfMaps by CenterChanged events arguments as per in the below code snippet
[XAML]:
<syncfusion:SfMap>
<syncfusion:SfMap.Layers>
<syncfusion:ImageryLayer LayerType="OSM" CenterChanged="ImageryLayer_CenterChanged" >
</syncfusion:ImageryLayer>
</syncfusion:SfMap.Layers>
</syncfusion:SfMap> |
[C#]:
private void ImageryLayer_CenterChanged(object sender, CenterChangedEventArgs e)
{
var topLeft = e.TopLeft;
var topRight = e.TopRight;
var bottomLeft = e.BottomLeft;
var bottomRight = e.BottomRight;
} |
I have a lot of markers to display and would like to draw them only on the visible portion of the map to improve performance.
By default, we have marker virtualization support and markers in the visible area only will draw in the screen.
Let us know if you need any further assistance.
Regards,
Sridevi S.