Interactive vs passive elements on map

Hi, I am making an interactive map where one can click on images/video along a route. So the markers are interactive/clickable. But I don’t want the line showing the route map to be a clickable entity - is there a way to display a route/line, but have it as a passive element?