Articles in this section
Category / Section

How to render bubbles in the map?

1 min read

To render bubbles in the map, follow the steps given:

Step 1:

Create a map sample and include the necessary script files.

Step 2:

You can render the bubbles for visualizing the underlying data values of the map by enabling the API showBubble in the bubbleSettings and also by providing the valuePath API in the bubbleSettings to fetch the field data value needed for each bubble.

JS

bubbleSettings: {
                  showBubble:true,
                  valuePath: "population"
                            }                  

 

JS

<script type="text/javascript">
        jQuery(function ($) {           
            $("#maps").ejMap({ 
               layers: [
        bubbleSettings: {
                                .   .   .
                               showBubble:true,
                               valuePath: "population"
                                 .  .  .
                                }
                  ],
                        });
                      });
</script>

 

The following screenshot shows the bubbles:

Map with bubbles

 

Sample Links:

https://help.syncfusion.com/ug/js/default.htm#!documents/mapelements.htm

https://js.syncfusion.com/demos/web/#!/azure/map/drilldown

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied