To find the visible Parent for a marker

Function added to find the visible parent of a marker

This helps to find a marker that can open a popup