get path-marker-click-fn from shared-state

allows the path-marker-click-fn to close over the whole app-state