onItemClick

fires when a data item is clicked on a map

void onItemClick(id id);
ididthe id of a data item

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:{
        onItemClick:function(id){
            webix.message("Data item clicked: "+this.getItem(id).country);
        }
    }
});

Related samples

See also
Back to top