GeoPointMapDashboardItemBase.Longitude Property
Gets or sets the dimension that provides the longitude of geographical points.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v20.2.Core.dll
NuGet Packages: DevExpress.Dashboard.Core, DevExpress.WindowsDesktop.Dashboard.Core
Declaration
Property Value
Type | Default | Description |
---|---|---|
Dimension | *null* | A Dimension object specifying a dimension that provides the longitude of geographical points. |
Example
The following example demonstrates how to bind a Geo Point Map dashboard item to data in code.
Imports System.Windows.Forms
Imports DevExpress.DashboardCommon
Imports DevExpress.DataAccess.ConnectionParameters
Imports DevExpress.DataAccess.Sql
Namespace Dashboard_CreateGeoPointMap
Partial Public Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
' Creates a new dashboard and a data source for this dashboard.
Dim dashboard As New Dashboard()
Dim dataSource As New DashboardSqlDataSource()
Dim sqlQuery As New CustomSqlQuery("Cities", "select * from Cities")
dataSource.ConnectionParameters =
New Access97ConnectionParameters("..\..\Data\Cities.mdb", "", "")
dataSource.Queries.Add(sqlQuery)
' Creates a Geo Point Map dashboard item and specifies its data source.
Dim geopointMap As New GeoPointMapDashboardItem()
geopointMap.DataSource = dataSource
geopointMap.DataMember = "Cities"
' Loads the map of the world.
geopointMap.Area = ShapefileArea.WorldCountries
' Provides city coordinates and corresponding populations.
geopointMap.Latitude = New Dimension("Latitude")
geopointMap.Longitude = New Dimension("Longitude")
geopointMap.Value = New Measure("Population")
' Adds the Geo Point Map dashboard item to the dashboard and opens this
' dashboard in the Dashboard Viewer.
dashboard.Items.Add(geopointMap)
dashboardViewer1.Dashboard = dashboard
End Sub
End Class
End Namespace
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Longitude property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.