Hi,
I have an issue using the navigations lines. I give to the MapsNavigationLines a List of MapsNavigationLine:
<MapsNavigationLines>
@foreach (var LinkNavigationLine in LinkNavigationLines)
{
<MapsNavigationLine Visible="true"
Color="@MapsConstant.NavigationLineColor"
Width="3"
Latitude="LinkNaviagationLine.latitudes"
Longitude="LinkNavigationLine.longitudes">
</MapsNavigationLine>
}
</MapsNavigationLines>
The list is filled by an async service:
LinkNavigationLines = await MyService.GetLinkNavigationLines (groupId);
And the List is declared : public List<LinkNaviagtionLine> LinkNaviagtionLines = new List<LinkNaviagtionLine>();
This way, the navigations lines are never displayed. But if I init my list with default values:
public List<LinkNaviagtionLine> LinkNaviagtionLines = new List<LinkNaviagtionLine>()
{
new LinkNaviagtionLine
{
latitudes = new double[2] { 0, 0 },
longitudes = new double[2] { 0, 0 }
},
new LinkNaviagtionLine
{
latitudes = new double[2] { 0, 0 },
longitudes = new double[2] { 0, 0 }
},
then it will display ( only the count of declared values will be displayed).
My list is modified few times but it appears when the list is one time empty, it will never be displayed again, even if it has value.
Am I using the navigationsLines wrongly or it is a bug ?
Thank you in advance