I have a page that shows a map with a tabbed list of 4 different custom post types. I would like a way to filter the map markers so the user can toggle on/off different markers for different post types. I know this can be done with a view and filter, but I have had to do this page in PHP because of some complex grandparent-grandchild relationship queries.
Is there a filter or hook that I can use, or perhaps some javascript, to hide/show specific map markers?