Back to Devexpress

VectorMapBuilder.Center(IEnumerable<Double>) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-vectormapbuilder-dot-center-x28-system-dot-collections-dot-generic-dot-ienumerable-system-dot-double-x29.md

latest1.4 KB
Original Source

VectorMapBuilder.Center(IEnumerable<Double>) Method

Specifies the geographical coordinates of the center for a map. Mirrors the client-side center option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public VectorMapBuilder Center(
    IEnumerable<double> value
)

Parameters

NameTypeDescription
valueIEnumerable<Double>

The option value.

|

Returns

TypeDescription
VectorMapBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().VectorMap()
    .Center(new double[] { 10, 20 })
)

See Also

VectorMapBuilder Class

VectorMapBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace