use layergroup getdata with type filter to get events