Back to Devexpress

MapBuilder.Provider(GeoMapProvider) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-mapbuilder-dot-provider-x28-devextreme-dot-aspnet-dot-mvc-dot-geomapprovider-x29.md

latest1.2 KB
Original Source

MapBuilder.Provider(GeoMapProvider) Method

The name of the current map data provider. Mirrors the client-side provider option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public MapBuilder Provider(
    GeoMapProvider value
)

Parameters

NameTypeDescription
valueGeoMapProvider

The option value.

|

Returns

TypeDescription
MapBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().Map()
    .Provider(GeoMapProvider.Bing)
)

See Also

MapBuilder Class

MapBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace