center

An object, a string, or an array specifying the location displayed at the center of the widget.

Type:

Object

|

String

|

Array

You can specify the center value in one of the following formats.

  • { lat: 40.749825, lng: -73.987963}
  • "40.749825, -73.987963"
  • [40.749825, -73.987963]
  • 'Brooklyn Bridge,New York,NY'

When you configure the Map using ASP.NET MVC Wrappers, this option accepts either a string value indicating the address, or two values of the double type indicating the coordinates.

Razor C#
Razor VB
@(Html.DevExtreme().Map()
    .Center("Brooklyn Bridge,New York,NY")
    // ===== or =====
    .Center(40.74982, -73.987963)
)
@(Html.DevExtreme().Map() _
    .Center("Brooklyn Bridge,New York,NY") _
    ' ===== or =====
    .Center(40.74982, -73.987963)
)

lat

The latitude location of the widget.

Type:

Number

Default Value: 0

lng

The longitude location of the widget.

Type:

Number

Default Value: 0