Skip to main content

MapRouteBuilder.Mode(GeoMapRouteMode) Method

Specifies a transportation mode to be used in the displayed route. Mirrors the client-side mode option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public MapRouteBuilder Mode(
    GeoMapRouteMode value
)

Parameters

Name Type Description
value GeoMapRouteMode

The option value.

Returns

Type Description
MapRouteBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().Map()
    .Routes(routes => {
        routes.Add().Mode(GeoMapRouteMode.Driving);
    })
)
See Also