This morning I was helping to work out some issues with a site using FacetWP and came across a useful filter contained within the Facet WP Google Maps addon.
Documentation for the Google Maps addon is a little sparse at the moment, so I thought it would be helpful to highlight the facetwp_map_init_args
filter, which allows you to update the default Google Map options.
In this case we wanted to disable the scrollwheel zoom, so added the following code to functions.php
.
Other Google Maps options can be set using the filter, such as preventing the map being draggable or removing the default map controls.