gpaa_map_options (JS)

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Customize the default map center
  5. Since

Description

Filter the options used to initialize the map.

Usage

window.gform.addFilter( 'gpaa_map_options', 'my_custom_function' );

Parameters

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.