Back to Devexpress

DxMapRoute.Opacity Property

blazor-devexpress-dot-blazor-dot-dxmaproute-b144cf62.md

latest1.5 KB
Original Source

DxMapRoute.Opacity Property

Specifies route transparency.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(0.5)]
[Parameter]
public double Opacity { get; set; }

Property Value

TypeDefaultDescription
Double0.5

A value between 0 (transparent) and 1 (opaque).

|

Remarks

Use the Opacity property to change route line transparency.

razor
<DxMap ControlsVisible="true"
       Zoom="14"
       Provider="MapProvider.Google"
       Width="950px"
       Height="350px" >
    <DxMapApiKeys Google="@MapApiKeyProvider.GetGoogleProviderKey()" />
    <DxMapRoutes>
        <DxMapRoute Color="red" Weight="9" Mode="MapRouteMode.Walking" Opacity="0.4" >
            <DxMapRouteLocations>
                <DxMapRouteLocation GeoPosition="St. Paul's Cathedral,London" />
                <DxMapRouteLocation GeoPosition="Tower of London,London" />
        </DxMapRoute>
    </DxMapRoutes>
</DxMap>

See Also

DxMapRoute Class

DxMapRoute Members

DevExpress.Blazor Namespace