Dear Syncfusion Team,
please check the attached sample.
The problem is in detail written in the project, essentially the following snippet is working only, if the Destinations had been set to null before and after Destinations.Count == 1.
@if (Destinations != null)
{
<MapsMarkerSettings>
@if (Destinations.Count == 1)
{
<MapsMarker Visible="true" DataSource="@Destinations" Height="14" Width="14"
TValue="Destination" Shape="@Syncfusion.Blazor.Maps.MarkerType.Circle" Fill="Green" AnimationDuration="0">
<MapsMarkerBorder Width="2" Color="#333"></MapsMarkerBorder>
<MapsMarkerTooltipSettings Visible="true" ValuePath="@nameof(Destination.Name)"></MapsMarkerTooltipSettings>
</MapsMarker>
}
else
{
<MapsMarker Visible="true" DataSource="@Destinations" Height="8" Width="8"
TValue="Destination" Shape="@Syncfusion.Blazor.Maps.MarkerType.Circle" Fill="Grey" AnimationDuration="0">
<MapsMarkerBorder Width="2" Color="#333"></MapsMarkerBorder>
<MapsMarkerTooltipSettings Visible="true" ValuePath="@nameof(Destination.Name)"></MapsMarkerTooltipSettings>
</MapsMarker>
}
</MapsMarkerSettings>
}
Please advise how to make the behavior as expected.
Best regards
Michael
|
<SfButton id="datasourcenull" OnClick="@(()=>{Destinations.Clear(); maps.Refresh();})"> DataSource is null </SfButton> |