We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to render bubbles in the map?

Platform: JavaScript |
Control: ejMap |
Published Date: May 20, 2015 |
Last Revised Date: June 28, 2019

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:

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

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

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon