How to limit the number of simultaneous urls opened with openurl()?

I have graphs with a lot of glyphs (circles) overlapping, each of it has a url that is opened in a new tab with openurl. the problem is that when I click in a area with a lot of glyphs it opens 100 new tabs… is it possible to limit to 1 tab? like the closest glyph from the click… or to not trigger openurl when too many glyphs are selected?

OpenURL is very simplistic, it does not currently have any configuration beyond the URL pattern and a flag for same-tab (or not). You best bet would be to use a CustomJS callback on selection events, then you can choose which or how many of the selection indices to ignore.