It seems the view you created is corrupted or have some issue but however in this case you should use mix of views like legacy view to display map and block view to display your custom search.
I've enable the legacy view by enabling the setting:
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/
Then created the following legacy view that will help us to display map with all markers:
- hidden link
More info:
- https://toolset.com/documentation/legacy-features/views-plugin/
Then created the following test page where I've added the above legacy view that holds the map as well as added block view:
- hidden link
With block view you can add your desired custom search filters and format the loop output as required.
Added the following filter hook to "Custom Code" section offered by Toolset:
- hidden link
add_filter( 'wpv_view_settings', 'func_enable_view_pagination', 5, 2 );
function func_enable_view_pagination( $view_settings, $view_id ) {
if ( $view_id == 10623 ) {
if(isset($_REQUEST['wpv_view_count'])){
$view_settings['pagination']['type'] = 'paged';
$view_settings['pagination']['posts_per_page'] = 9;
}
}
return $view_settings;
}
- The above code will help you to enable the pagination dynamically when you apply and custom search filter or pagination and set the posts_per_page to 9 items per page.
On the frontend when page displayed first time it displays all the map markers on the map - you can adjust the marker display and popup as required.
- hidden link
As mentioned, you should add your search filters to the block view on the following page and also add whatever fields you want to display with your loop:
- hidden link
Then also make sure that you should add the same custom search query filters under the "Query Filter" section of the view that displays the maps.
- hidden link
For instance, if you have added the custom search filter for the custom field "Ocena" with your block view then you should also go the the following view that displays the maps:
- hidden link
And under the "Query Filter" section you should also add the query filter for the custom field "Ocena".
For example:
Select items with field:
Ocena is a number greater than or equal URL_PARAM(wpv-wpcf-ocena)