Back to Devexpress

DxMapRoute.Weight Property

blazor-devexpress-dot-blazor-dot-dxmaproute-dec61127.md

latest1.8 KB
Original Source

DxMapRoute.Weight Property

Specifies the thickness of the route line.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(5)]
[Parameter]
public double Weight { get; set; }

Property Value

TypeDefaultDescription
Double5

The line weight, in pixels.

|

Remarks

Use the Weight property to specify the thickness of the route line or diameter the route dots.

razor
<DxMap Zoom="14"
       Provider="MapProvider.Azure"
       Width="950px"
       Height="400px"
       ControlsVisible="true" >
    <DxMapApiKeys Azure="@MapApiKeyProvider.GetAzureProviderKey()" />
    <DxMapRoutes>
        <DxMapRoute Color="green" Weight="9" Mode="MapRouteMode.Walking" >
            <DxMapRouteLocations>
                <DxMapRouteLocation GeoPosition="St. Paul's Cathedral,London" />
                <DxMapRouteLocation GeoPosition="Tate Modern,London" />
            </DxMapRouteLocations>
        </DxMapRoute>
        <DxMapRoute Color="red" Weight="9" Mode="MapRouteMode.Driving" >
            <DxMapRouteLocations>
                <DxMapRouteLocation GeoPosition="St. Paul's Cathedral,London" />
                <DxMapRouteLocation GeoPosition="Tate Modern,London" />
            </DxMapRouteLocations>
        </DxMapRoute>
    </DxMapRoutes>
</DxMap>

See Also

DxMapRoute Class

DxMapRoute Members

DevExpress.Blazor Namespace