I am trying to:
If you search on hidden link for a couch with (for example) 'voornaam': Ton it is not showing the Google Maps of the specific coach. If refresh the page, it is fine.
Link to a page where the issue can be seen: hidden link
What me be causing the problem:
In the Decvelopers Tool from Google Chrome it gives me this error/ warning: UnCaught TypeError: viewUniqueId.split is not function
It is on rule 1311 of the file wpv_addon_maps.js. See the specific part here:
/**
* Check if a Map block contains markers coming from a View, and it it does, remove those, because new ones are
* provided by View.
*
* @since 2.0
* @param {string} viewUniqueId
*/
self.cleanupMarkersFromMapBlock = function( viewUniqueId ) {
const viewId = viewUniqueId.split( '-' )[ 0 ];
$( '.js-wpv-addon-maps-marker' ).each( function( key, marker ) {
// If this is a marker coming from given View...
if ( Number( $( marker ).data( 'fromview' ) ) === Number( viewId ) ) {
// Record View - Map blocks relation, as it's useful in some situations
self.view_map_blocks_relation[ viewUniqueId ] = $( marker ).data( 'markerfor' );
// Remove markers next to Map div (instead of in View div)
$( marker ).prev( '.js-wpv-addon-maps-render' ).next().remove();
}
} );
};
Hello. Thank you for contacting the Toolset support.
This is known issue to us and we just reported it in front of our devs.
The workaround could be, Can you please try to checkmark the option "Don't include current page in query result" available with "Query Options" section on our edit view page and check if that helps you to resolve your issue.