I'm not showing the map with results until after a user has set search filters and clicked search button with a php filter on "wpv_filter_query_post_process"
But in this case, the map never appears and I get some jQuery errors shown in console:
Not sure what you mean by here I'm not showing the map with results until after a user has set search filters and clicked search button with a php filter on "wpv_filter_query_post_process"
Secondly does the map load normally on a fresh view and a search is performed?
But without that filter, then the map does load normally.
Take a look here: lien caché
You will see that when you set a search filter that results are generated and even a space is created where the map should display, but the map is not visible.
It's another issue, but this map is very slow. There are over 4,000 posts and it is creaking. That's one of the reasons that I'm looking at this approach, because showing the map on page load with all results is very slow. If you have any suggestions about that, then I'd also like to hear them.
Where on the view the map was added? I suspect that this was added in the [wpv-items-found] shortcode ?
There is a different way to perform this exact same query of starting without any results that makes use of our conditionals and this should get your view's map to work regardless.
Please let me know if you want to go ahead and try this.