I have a search view that works correctly and have put a map under it to display the results from the search view.
I have attached pictures to show everything. The Map ID is "map-4" and the Marker ID is "marker-4". I have the marker setup to show the "footage-location" of posts.
The shortcode I am using to display the map over the search view on the page is:
Thank you for your suggestions. I am not sure I have implemented this correctly as I am still not having any luck. Am I able to give you access to my site please?
Please share problem URL where you added the map with view and admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Thanks for your help. I have a few issues still with the map.
1. The markers do not update when the search results are changed. For instance, if you change the location searched to say "Brisbane, Queensland" there will be no results showing in the search results. However, the map still shows the original search post on it.
2. Now that the map is added by shortcode, I am not sure how to add pop up information so that when you click on a marker you can see what post it relates to.
I've created the following content template and I've added the map block and view block together - you can adjust the spacing between the view and map as per your requirement by adding separator:
=> hidden link
With map block, I've also added the [wpv-post-link] shortcode to marker popup section so it will display the related post link. Please check the following screenshot: hidden link
Then, to your elementor template, I've added the above content template using the shortcode module:
=> hidden link
Thanks mate for tour help. It is almost functioning correctly. It seems to not be refreshing the map correctly though.
It refreshes the map the first time a search filter is changed but never again after. For example, if you change the location to search within 10km of Perth, Western Australia the post goes away and the map updates. But if you then change it to search within 20km of Perth it brings the post back in the view but not the map.