You can use Salesforce Maps URL parameters to leverage developer knowledge to customize how Salesforce Maps works in your Salesforce organization. For example, you can create a button that automatically launches Salesforce Maps with a given layer. Note that we provide certain hard-coded URLs, mainly for the sake of giving straightforward examples.
Query parameters take the form of a standard URL with an attached query string.
| Parameter | Example | Notes |
|---|---|---|
| recordId | 001C000001BSztN | Id (Single) of the record to plot |
| recordIds | 001C000001BSztN,001C000001BSztN,etc... | Ids (Multiple) of the records to be plotted |
| baseObjectId | a0bC000000CIRAmIAP | Maps Base Object Id |
| tooltipField | Name | API Field |
| tooltipField2 | OwnerId | API Field |
| tooltipField3 | Type | API Field |
| tooltipField4 | string | API Field |
| tooltipField5 | string | API Field |
| tooltipField6 | string | API Field |
| tooltipField7 | string | API Field |
| tooltipField8 | string | API Field |
| tooltipField9 | string | API Field |
| tooltipField10 | string | API Field |
| tooltipField11 | string | API Field |
| tooltipField12 | string | API Field |
| tooltipField13 | string | API Field |
| tooltipField14 | string | API Field |
| tooltipField15 | string | API Field |
| zoom | integer between 1 - 18 | Map zoom level. 18 is the closest zoom (rooftop) while 1 is the furthest (world). |
| zoomtofit | (true or false) | Zoom to a level that displays all records plotted on the map |
| color | #66FF00 (Note that the pound sign will have be escaped. This can be handled with the URLENCODE() Salesforce function.) | Color of the marker |
| layerid | a0bC000000CIRAmIAP,a0bC000000CIRAmIAP, etc | Comma separated list of layer Ids |
| proximityRadius | integer | Radius of Circle |
| proximityUnit | (meters,kilometers,miles,feet,yards) | Measurement Unit |
| proximityAffectMarkerVisiblity | (true or false) | Only Show Markers Inside Shape |
Note:
This example plots a single record with the given base object, tooltip settings, zoom, and color settings.
https://YOUR_SALESFORCE_DOMAIN/apex/Maps__maps?recordId=0014100000gXMTb&baseObjectId=a034100000JEBY7AAP&tooltipField=Name&tooltipField2=OwnerId&zoom=16&color=%2366FF00
This example plots a given Marker Layer. Note that you can find this layer id by creating a tab for the Salesforce Maps Marker Layer object and reviewing your layers. At that point, you can get the object ID from the URL.
https://YOUR_SALESFORCE_DOMAIN/apex/Maps__maps?layerid=a0O410000026nIE
Please note In the enhanced user experience, there are subtle changes to how we’re handling URLs to launch Maps - specifically to proximity parameters:
See also:
000389813

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.