Blazor Geographic Bubble Map

    In Blazor map component, you can use the IgbGeographicProportionalSymbolSeries 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.

    Blazor Geographic Bubble Map Example

    The demo above shows the IgbGeographicProportionalSymbolSeries 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 IgbGeographicProportionalSymbolSeries 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 GeographicHighDensityScatterSeries series properties used for data binding.

    Property Type Description
    DataSource any Gets or sets the items source
    LongitudeMemberPath string Uses the ItemsSource property to determine the location of the longitude values on the assigned items
    LatitudeMemberPath string Uses the ItemsSource 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 IgbSizeScale 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

    @using IgniteUI.Blazor.Controls
    
    
    <IgbGeographicMap Height="100%" Width="100%" Zoomable="true">
        <IgbGeographicProportionalSymbolSeries DataSource="WorldCities"
            MarkerType="MarkerType.Circle"
            RadiusScale="SeriesSizeScale"
            FillScale="ColorScale"
            FillMemberPath="Pop"
            RadiusMemberPath="Pop"
            LatitudeMemberPath="Lat"
            LongitudeMemberPath="Lon"
            MarkerOutline="rgba(0,0,0,0.3)" />
    </IgbGeographicMap>
    
    @code {
    
        private List<WorldCity> WorldCities;
        private SizeScale SeriesSizeScale;
        private ValueBrushScale ColorScale;
    
        protected override void OnInitialized()
        {
            this.WorldCities = WorldLocations.GetAll();
    
            this.SeriesSizeScale = new SizeScale()
            {
                MinimumValue = 4,
                MaximumValue = 60
            };
    
            this.ColorScale = new ValueBrushScale()
            {
                Brushes = "rgba(14, 194, 14, 0.4), rgba(252, 170, 32, 0.4), rgba(252, 32, 32, 0.4)",
                MinimumValue = 0,
                MaximumValue = 30
            };
        }
    }
    

    API References