Dealing with non-contiguous datasets. Unstupiding the map clicking event