Trigger custom Javascript

If the plugin doesn’t include a particular feature, but you’re confortable with javascript, you can always add some custom code to your map that can be triggered when a region or marker is clicked. You could use this to open your own lightbox or change something on a form.

Consider the example below:




    For the above example we used custom javascript code to automatically change a field in the form next to it.

    You could use this feature to extend your map further and make it interact with other elements on your page. Read more about this feature.


    Explore other features

    World Map with Grouped Regions
    Set the same tooltip and hover effect
    Map with a form on the right
    Add custom javascript code to trigger when a region or marker is clicked.
    world map centered in asia
    Change the projection center point.

    Free Trial

    Try the Pro version of the plugin for 7 days.
    You’re not sure this is the right plugin for you? Try it out first!