Newer Version Available
MapAndLocationSettings
In the package manifest, all organization settings metadata types are accessed using the “Settings” name. See Settings for more details.
Declarative Metadata File Suffix and Directory Location
MapAndLocationSettings values are stored in a single file named Mapandlocation.settings in the settings directory. The .settings files are different from other named components because there is only one settings file for each settings component.
Version
Map and location settings are available in API version 46.0 and later.
Fields
| Field | Field Type | Description |
|---|---|---|
| enableAddressAutoComplete | boolean | Indicates whether auto-complete is enabled on address fields (true) or not (false). |
| enableMapsAndLocation | boolean | Indicates whether the maps and location services are enabled (true) or not (false) |
Declarative Metadata Sample Definition
This is a sample mapandlocation.settings metadata file.
1<?xml version="1.0" encoding="UTF-8"?>
2<MapsAndLocationSettings xmlns="http://soap.sforce.com/2006/04/metadata">
3 <enableAddressAutoComplete>false</enableAddressAutoComplete>
4 <enableMapsAndLocation>false</enableMapsAndLocation>
5</MapsAndLocationSettings>Wildcard Support in the Manifest File
The wildcard character * (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see Settings. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.