fires when a data item is clicked on a map
id | id | the id of a data item |
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:{
onItemClick:function(id){
webix.message("Data item clicked: "+this.getItem(id).country);
}
}
});