gpaa_map_options (JS)
Description
Filter the options used to initialize the map.
Usage
window.gform.addFilter( 'gpaa_map_options', 'my_custom_function' );
Parameters
options google.maps.MapOptions
Contains the map configuration options. All available options are documented here.
formId int
The current form ID.
fieldId int
The current field ID.
Examples
Customize the default map center
This example sets the starting location to Berlin, Germany.
window.gform.addFilter( 'gpaa_map_options', function( opts ) {
opts.center = {
lat: 52.5200,
lng: 13.4050,
};
return opts;
} );
Since
This filter is available since Gravity Forms Address Autocomplete 1.2.1.