Search
MapWidget Class
Remarks See Also
 






Represents a dashboard widget that displays a MindFusion.Mapping MapView control.

Namespace: MindFusion.Dashboards
File: MapWidget.js

 Syntax

JavaScript  Copy Code

// class
MapWidget.prototype = {}

 Remarks

MapWidget embeds the MindFusion.Mapping control to provide interactive geographical data maps. It is ideal for territory sales breakdowns, regional logistics tracking, and demographic visualizations.

The MapWidget displays map tiles and layers. Layers are managed through the mapLayers collection, with the base geographical tile layer accessible via baseMap.

Key properties:

  • location: A comma-separated latitude and longitude string specifying the geographic center of the map view (e.g., "37.7749,-122.4194").
  • zoomFactor: An integer or floating-point number defining the map magnification level.

Data overlays can be applied to map shapes to color geographic regions based on numeric metrics (e.g., revenue by state or country).

 Inheritance Hierarchy

MindFusion.Dashboards.DashboardWidget
    MindFusion.Dashboards.MapWidget

 See Also