I am trying to: avoid the map disappearing when there are no matching search results
Link to a page where the issue can be seen:
battstaging2.com
I expected to see:
avoid the map disappearing when there are no matching search results
Instead, I got:
The map disappears when there are no search results from a custom search
Hello,
Please edit the post view(ID: 312) you mentioned above.
in section "Loop Editor", try to move the map shortcode [wpv-map-render] outside [wpv-items-found] ... [/wpv-items-found], and test again.
More help:
hidden link
Meta HTML wrapped in [wpv-items-found][/wpv-items-found] will be output if there are any posts | taxonomies | users returned by the View.
My issue is resolved now. Thank you!
This issue is not resolved, while moving the map outside the no items found is a logical resolution for when you put the Map in the loop editor, it is not when you want the search form appear after the map, in which case, the map can only be placed before the search form, and in that case, the issue as described here still happens.
Additionally the core issue only happens when you use AJAX.
Opened a new ticket for this, since the real reason for this is a error in the implementation of the map. The map, when there are no results, should still be instantiated - but without markers.