Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxMapRoute.Opacity Property

Specifies route transparency.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

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

#Property Value

Type Default Description
Double 0.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>

DxMap - Map with a Transparent Route

See Also