ichim / LeafletForBlazor-NuGet

LeafletForBlazor NuGet Package - You can quickly add a map control to your Blazor application - 2.2.2.2 version. #12 issue, StreamLegend customization
https://www.nuget.org/packages/LeafletForBlazor#versions-body-tab
74 stars 9 forks source link

Delete all points #43

Closed condairteam closed 3 months ago

condairteam commented 3 months ago

Hi Sir,

Thank you for the incredible update, working everything is just fine with the last update (2.0.8.4) , but one function, which is the delete function. When i am calling this:

 await _realTimeMap.Geometric.Points.delete(); 

i got this error:

 System.InvalidOperationException: Sequence contains no elements
         at System.Linq.ThrowHelper.ThrowNoElementsException()
         at System.Linq.Enumerable.MaxFloat[TSource,TResult](IEnumerable`1 source, Func`2 selector)
         at LeafletForBlazor.RealTime.points.Points.updateExtent()
         at LeafletForBlazor.RealTime.points.Points.delete()

No matter there are points on the map (which are just showing fine) or just an empty map.

Thanks, Alex

ichim commented 3 months ago

I am sorry. I will fix it

ichim commented 3 months ago

....in a few minutes version 2.0.8.6 will be available. This version fixes bug #43 reported by you

condairteam commented 3 months ago

Nice working fine again. Good job 💯 👍