.on event. How to solve the problem is always incremented one by one when you click
. tree.on("nodeselect", function (e) {
if (e.isLeaf) {
var id = e.node.id;
grid.load({id:id});
var latLng = new google.maps.LatLng(e.node.lat,e.node.lng);
tree.on("nodeclick", markerClickText(id,latLng));
var div =map.getDiv();
map.setZoom(5);//
map.panTo(latLng);
map.panBy(0, -(div.offsetHeight/4));//
} else {
grid.setData([]);
grid.setTotalCount(0);
}
});