onRegionClick

fires when any region is clicked on a map

void onRegionClick(object object);
objectobjecta region object

Example

webix.ui({
    view:"geochart", 
    id:"map",
    data:json_data,
    // provide your own Google API key 
    // https://developers.google.com/maps/documentation/javascript/get-api-key
    key:"AIzaSyAi0oVNVO-e603aUY8SILdD4v9bVBkmiTg",
    on:{      
        onRegionClick:function(obj){
            webix.message("Region clicked: "+obj.region);
        } 
    }
});

Related samples

Details
See also
Back to top