Infragistics
Close
Angular React Web Components Blazor Angular
Premium

Angular Geographic Bubble Map

In Angular map component, you can use the IgxGeographicProportionalSymbolSeriesComponent to plot bubbles or proportional markers at the geographic locations specified by the data in your application. This map series can be useful for highlighting points of interest in your particular business case like department stores, warehouses, or offices. Also you can use this map series in a fleet management system or a GPS system for dynamic vehicle tracking.

Angular Geographic Bubble Map Example

The demo above shows the IgxGeographicProportionalSymbolSeriesComponent series and how to specify data binding options of the series. Automatic marker selection is configured along with marker collision avoidance logic, and marker outline and fill colors are specified too.

Configuration Summary

Similar to other types of scatter series in the map control, the IgxGeographicProportionalSymbolSeriesComponent series has the dataSource property which can be bound to an array of objects. In addition, each data item in the items source must have two data columns that store geographic longitude and latitude coordinates and uses the longitudeMemberPath and latitudeMemberPath properties to map these data columns. The radiusScale and radiusMemberPath will settings configures the radius for the bubbles.

The following table summarizes the IgxGeographicProportionalSymbolSeriesComponent series properties used for data binding.

Property Type Description
dataSource any Gets or sets the items source
longitudeMemberPath string Uses the DataSource property to determine the location of the longitude values on the assigned items
latitudeMemberPath string Uses the DataSource property to determine the location of the latitude values on the assigned items
radiusMemberPath string Sets the path to use to get the radius values for the series.
radiusScale IgxSizeScaleComponent Gets or sets the radius scale property for the current bubble series.
minimumValue any Configure the minimum value for calculating value sub ranges.
maximumValue any Configure the maximum value for calculating value sub ranges.

Code Snippet

<igx-geographic-map
    #map
    height="100%"
    width="100%"
    zoomable="true">
    <igx-geographic-proportional-symbol-series
        #worldCitiesSeries
        [dataSource]="worldCities"
        markerType="Circle"
        fillMemberPath="population"
        radiusMemberPath="population"
        latitudeMemberPath="y"
        longitudeMemberPath="x"
        markerOutline="rgba(0, 0, 0, 0.3)">
        <igx-size-scale
            minimumValue=4
            maximumValue=60>
        </igx-size-scale>
        <igx-value-brush-scale
            brushes="rgba(14, 194, 14, 0.4) rgba(252, 170, 32, 0.4) rgba(252, 32, 32, 0.4)"
            minimumValue=0
            maximumValue=30>
        </igx-value-brush-scale>
    </igx-geographic-proportional-symbol-series>
</igx-geographic-map>

API References