Hi there,
I am building a site for a small company and have added Mapbox to show locations of companies.
The feature is working perfectyl with the site.
Is there an option or snippet to disable users from clicking/using the mapbox? So that it wont zoom in or out. I tried the following snippet but this does not work, it hides the whole listing page.
Thank you for advice allready!
add_filter(
'hivepress/v1/templates/listing_view_page',
function( $template ) {
hivepress()->template->fetch_block( $template, 'location_container' );
// Add custom CSS to disable pointer events for the map container
$template .= '<style>.mapboxgl-control-container { pointer-events: none; }</style>';
return $template;
},
1000
);