GeoPointMapItem Class

A Geo Point Map dashboard item that allows you to place callouts on the map using geographical coordinates.

Declaration

export class GeoPointMapItem extends GeoPointMapItemBase

Remarks

The Geo Point Map dashboard item allows you to place callouts on the map using geographical coordinates.

wdd-geo-point-map

See Web Dashboard - Creating Geo Point Maps to learn more about Geo Point Maps.

Example

The following example shows how to create the Geo Point Map dashboard item, bind it to data and add to the existing dashboard.

Create data items (measures and dimensions) and use the DataItem.dataMember property to bind them to the existing data source’s columns. Then use the created measures and dimensions in the dashboard item to bind it to data.

After you add the created dashboard item to the Dashboard.items collection, call the Dashboard.rebuildLayout method to rebuild the dashboard layout and display changes.

// Use the line below for a modular approach:
// import * as Model from 'devexpress-dashboard/model'
// Use the line below for an approach with global namespaces:
// var Model = DevExpress.Dashboard.Model;

// ...
public createGeoPointMapItem() { 
    // Create data items for the GeoPointMap dashboard item.
    var geoPointMapImport = new Model.Measure();
    geoPointMapImport.dataMember("Import");
    var geoPointMapLatitude = new Model.Dimension();
    geoPointMapLatitude.dataMember("Latitude");
    var geoPointMapLongitude = new Model.Dimension();
    geoPointMapLongitude.dataMember("Longitude");

    // Create the GeoPoint Map dashboard item and bind it to data.
    var geoPointMapItem = new Model.GeoPointMapItem();    
    geoPointMapItem.name('geoPointMap');
    geoPointMapItem.dataSource(excelDataSource.componentName());

    geoPointMapItem.latitude(geoPointMapLatitude);
    geoPointMapItem.longitude(geoPointMapLongitude);
    geoPointMapItem.area("Europe");
    geoPointMapItem.value(geoPointMapImport);    

    control.dashboard().items.push(geoPointMapItem);
    // ...
    control.dashboard().rebuildLayout();
}

Inherited Members

DevExpress.Dashboard.Model.DataDashboardItem.componentName
DevExpress.Dashboard.Model.DataDashboardItem.customProperties
DevExpress.Dashboard.Model.DataDashboardItem.name
DevExpress.Dashboard.Model.DataDashboardItem.parentContainer
DevExpress.Dashboard.Model.DataDashboardItem.showCaption
DevExpress.Dashboard.Model.DataDashboardItem.getInfo
DevExpress.Dashboard.Model.DataDashboardItem.getUniqueNamePrefix

Inheritance

See Also

constructor

Initializes a new instance of the GeoPointMapItem class.

Declaration

constructor(
    modelJson?: any,
    serializer?: ModelSerializer
)

Parameters

Name Type Description
modelJson any

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

value Property

Declaration

value: ko.Observable<Measure>

Property Value

Type
Observable<Measure>