public ArrayList<Link> intersects(JXMapViewer mapViewer) {
        ArrayList<Link> clickedLinkArray = new ArrayList<Link>();
        for (Link link : links) {
            if (mousePos != null) {
                for (Line2D line : link.getLines(mapViewer, mousePos)) {
                    if (line.ptSegDist(mapViewer.getTileFactory().geoToPixel(mapViewer.convertPointToGeoPosition(mousePos), mapViewer.getZoom())) < 3) {
                        link.setColor(this.hoverColor);
                        mapViewer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
                        clickedLinkArray.add(link);
                        break;
                    } else {
                        link.setColor(this.color);
                    }
                }
            }
        }
        return clickedLinkArray;
    }