NavigationLines

Hi is it possible to render navigation lines dynamically?    

<SfMaps @ref="map">
        <MapsZoomSettings Enable="true" ShouldZoomInitially="true" MaxZoom="18" ZoomFactor="20" MouseWheelZoom="true" Toolbars='new string[]{"Zoom", "ZoomIn", "ZoomOut", "Pan", "Reset" }'></MapsZoomSettings>
        <MapsCenterPosition Latitude="19.7036417" Longitude="-101.2761651"></MapsCenterPosition>
        <MapsLayers>
            <MapsLayer LayerType="ShapeLayerType.OSM">
                <MapsMarkerSettings>
                    <MapsMarker Visible="true"
                                Height="25"
                                Width="15"
                                LatitudeValuePath="Latitude"
                                LongitudeValuePath="Longitude"
                                ColorValuePath="MarkerColor"
                                DataSource="LastRecords">
                        <MapsMarkerTooltipSettings ValuePath="DeviceTime" Visible="true"></MapsMarkerTooltipSettings>
                    </MapsMarker>
                </MapsMarkerSettings>
                <MapsMarkerClusterSettings AllowClustering="false" AllowClusterExpand="true" Shape="MarkerType.Circle" Height="40" Width="40">
                    <MapsLayerMarkerClusterLabelStyle Color="white"></MapsLayerMarkerClusterLabelStyle>
                </MapsMarkerClusterSettings>
                <MapsNavigationLines>
                    @if (LatLonD!=null)
                    {
                        @foreach (var record in LatLon)
                        {
                            <MapsNavigationLine Visible="true" Angle="0" Color="black" Width="10" DashArray="1" Latitude="record.Key" Longitude="record.Value"></MapsNavigationLine>
                        }
                        map.Refresh();
                    }
                </MapsNavigationLines>
            </MapsLayer>
        </MapsLayers>
    </SfMaps>



6 Replies

SB Swetha Babu Syncfusion Team July 17, 2020 05:09 PM UTC

Hi Raul, 
  
Thank you for contacting Syncfusion support. 
  
We do not have support for adding the navigation lines in the Maps component using the declarative syntax in the Blazor application dynamically. However, we have considered this as a feature and logged a feature report for the same. The fix for this reported scenario will be included in any of our upcoming releases. Please follow the below feedback link for further updates. 
  
  
At present, to render the navigation lines, we need to render the navigation lines using individual MapsNavigationLine tags. 
  
Please let us know if you need further assistance. 
  
Regards, 
Swetha Babu 



MP Michael Pusch November 28, 2021 09:06 PM UTC

Hello Swetha,

this works basically fine. But when I change the MapNavigationLines dynamically, they are not cleared properly.

Please check the attached example. It is your Blazor example. Please use the Button on the first page "View Issue" to navigate to the example. If you hit the Button "Toggle" below the map, I would expect the already shown lines to disappear and the new lines to appear. But both groups are shown.

I had to remove wwwroot from your example, since it is over 30 MB. You can just use your example from:

https://github.com/syncfusion/blazor-samples

and replace Index.razor and NavigationLines.razor.

Best regards

Michael


Attachment: blazorsamplesmaster_bd7ba61c.zip


IR Indumathi Ravi Syncfusion Team November 29, 2021 10:08 PM UTC

Hi Michael, 
We are able to reproduce the reported issue with the provided sample. We have considered this as a defect and logged a defect report for the same. However, we will include the fix for the reported issue in our Volume 4 release which is expected to be available by the mid of December, 2021. Please find the feedback link below to keep track of the reported issue. 
  
Regards, 
Indumathi R. 



MP Michael Pusch December 1, 2021 11:59 AM UTC

Hi Indumathi,

awesome!

However, I get an "Access Denied" error when I click the link.

Best regards,

Michael



IR Indumathi Ravi Syncfusion Team December 2, 2021 10:41 AM UTC

Hi Michael, 
Sorry for the inconvenience. 
 
We have validated the provided feedback link. Please login and check the below feedback link now. 
 
Please let us know if you need any further assistance. 
Regards, 
Indumathi R. 



IR Indumathi Ravi Syncfusion Team December 20, 2021 04:59 PM UTC

Hi Michael, 
We have fixed the reported issue and it is included in our Essential Studio 2021 Volume 4 release v19.4.0.38 which is rolled out and is available for download under the following link. 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
Regards, 
Indumathi R 


Loader.
Up arrow icon