A newer version of this page is available.
Switch to the current version.
MapBubbleSettings Class
Contains settings used to generate Bubble chart items.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
public class MapBubbleSettings :
MapItemSettingsBase
Public Class MapBubbleSettings
Inherits MapItemSettingsBase
Related API Members
The following members accept/return MapBubbleSettings objects:
Remarks
This class introduces the MapBubbleSettings.MarkerType and MapBubbleSettings.CustomMarkerTemplate properties that allow specifying the marker view.
Examples
To generate bubble charts from a data source, do the following.
- Create a BubbleChartDataAdapter object and assign it to the VectorLayer.Data property.
- Bind a data source to the DataSourceAdapterBase.DataSource property of the object.
- Specify mappings to assign data fields to bubble properties. To do this, specify the MapItemMappingInfoBase.Latitude, MapItemMappingInfoBase.Longitude and MapBubbleMappingInfo.Value properties of the MapBubbleMappingInfo object assigned to the BubbleChartDataAdapter.Mappings property.
- Specify settings which are used to generate map bubble charts. To do this, specify the MapBubbleSettings object's properties. This object can be accessed using the BubbleChartDataAdapter.BubbleSettings property of the adapter.
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-automatically-generate-bubble-chart-items-from-a-datasource-t180068.
<dxm:VectorLayer x:Name="earthquakesLayer" ShapeFill="Orange" ToolTipEnabled="True"
ToolTipPattern="{}{Month}/{Day}/{Year}
Magnitude: %V%
Depth: {Depth}km">
<dxm:BubbleChartDataAdapter DataSource="{Binding Data}"
ItemMaxSize="60" ItemMinSize="10">
<dxm:BubbleChartDataAdapter.AttributeMappings>
<dxm:MapItemAttributeMapping Member="day" Name="Day"/>
<dxm:MapItemAttributeMapping Member="mon" Name="Month"/>
<dxm:MapItemAttributeMapping Member="yr" Name="Year"/>
<dxm:MapItemAttributeMapping Member="dep" Name="Depth"/>
</dxm:BubbleChartDataAdapter.AttributeMappings>
<dxm:BubbleChartDataAdapter.Mappings>
<dxm:MapBubbleMappingInfo Latitude="glat" Longitude="glon" Value="mag"/>
</dxm:BubbleChartDataAdapter.Mappings>
<dxm:BubbleChartDataAdapter.BubbleSettings>
<dxm:MapBubbleSettings MarkerType="Circle"/>
</dxm:BubbleChartDataAdapter.BubbleSettings>
</dxm:BubbleChartDataAdapter>
</dxm:VectorLayer>
Inheritance
Extension Methods
See Also
Feedback