fires when any region is clicked on a map
object | object | a region object |
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);
}
}
});