Settings Model

The Settings Model is a structural staple of most Craft plugins. It is generally not something you need to interact with directly.

If you want to manage the plugin's settings, go to Settings > Google Maps in the control panel. For more information, see the documentation regarding the plugin settings page...

FOR EDGE CASES ONLY

You will rarely need to call the Settings Model directly, it is for internal use only.

Read how to properly manage Google API keys...

# Public Properties

# browserKey

string - (Required) Google API Browser Key.

# serverKey

string - (Required) Google API Server Key.

REQUIRED API KEYS

The Google API Server Key and Google API Browser Key are both required. Please make sure your setup includes valid API keys to access the Google services.

# geolocationService

string - Optional geolocation service. Can be ipstack, maxmind, or null.

TIP

The value specified here will determine the relevance of any settings related to a specific geolocation service. For example, if you are using the ipstack geolocation service, you will also need to include an ipstack API Access Key (see below).

# ipstackApiAccessKey

string - ipstack API Access Key. Only relevant if geolocationService is set to ipstack.

# maxmindUserId

string - MaxMind User ID. Only relevant if geolocationService is set to maxmind.

# maxmindLicenseKey

string - MaxMind License Key. Only relevant if geolocationService is set to maxmind.

# maxmindService

string - MaxMind Service. Only relevant if geolocationService is set to maxmind.

# enableJsLogging

bool - Whether to allow logging to the JavaScript console. Only relevant when displaying a dynamic map. Defaults to true.

# minifyJsFiles

bool - Whether to use minified front-end JavaScript files. Only relevant when rendering a dynamic map. Defaults to false.

# fieldControlSize

int - Control the size of map UI elements in Address fields. Defaults to 27.

# fieldParams

array - Additional optional parameters for configuring Address fields.


Additional Details

For more detailed information, check out the docs regarding the PHP Config File...