Skip to main content

MapBuilder.Center(Double, Double) Method

Mirrors the client-side center option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public MapBuilder Center(
    double latitude,
    double longitude
)

Parameters

Name Type Description
latitude Double

The latitude value.

longitude Double

The longitude value.

Returns

Type Description
MapBuilder

A reference to this instance after the method is called.

Remarks

In Razor files, use the following notation to set the option’s value:

@(Html.DevExtreme().Map()
    .Center(40.749825, -73.987963)
)
See Also