I am currently building a directory site. I have 2 post types which are connected using a one-to-many relationship:
Listings
Locations
On each Location CPT page I would like to show all the relevant CPT Listings using a View which I can do. What I cannot do however is get a map to show with all the listings for this location? I have looked through the documentation and It is all related to the new Blocks. I am using the old Views as I am used to this for now.
If you are using the legacy Views then in the output of your View, outside of the loop (so it appears only once) you use the Fields and Views button to insert a map shortcode that is responsible for generating the map itself.
Then, within the loop tags use the Fields and Views button to insert a map-marker shortcode, which will be triggered for each post, and is responsible for adding the marker to the map. The marker shortcode includes the id of the map they will be added to, but it should have this added automatically. The dialogs when inserting these shortcodes include various settings, which should be fairly self-explanatory.
If you try and are still stuck, please follow-up with details of what you've done.