Hi there,
I have a frontend submission form that contains a Google Map and address field that uses the Geocoding API for autocomplete. All works as expected!
However, I would like to 'Disable/Hide' the map controls such as:
- zoomControl
- fullscreenControl
- mapTypeToControl
Within the submission form Google Map.
Looking at your documentation here - https://docs.metabox.io/fields/map/ I can see that the "frontend" display of the map can be customised via some $args. But within my submission form Google Map the 'js_options' have no effect?
EG:
[
'id' => 'map',
'type' => 'map',
'api_key' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
'zoom' => 10,
'std' => '',
'address_field' => 'address',
'js_options' => [
'zoomControl' => false,
'fullscreenControl' => false,
'mapTypeToControl' => false,
],
],
How can this be achieved? What am I missing? Custom JS? An example would be very helpful 🙂