Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Map List - Search Around

Find configured points of interest within a radius of any location on a GM - Map List.

GridMate's Search Around is a smart and intuitive feature that lets you explore any location anywhere on the map and discover the configured point of interest within a given radius.

Below is an example of the Search Around configuration used on the video below👇. Paste the JSON in the Search Around property of the GM - Map List component in the App Builder.

{
    "unit": "km",
    "distance": "500",
    "autoComplete": {
        "autoCompleteHandler": "GeoApifyAutoCompleteHandler"
    }
}

Slider range

The distance slider runs from minDistance to distance in stepDistance increments.

Key
Default
Description

distance

—

Maximum distance (slider end)

minDistance

10

Minimum distance (slider start)

stepDistance

5

Slider increment

Target entities

targetEntities lists the objects the location picker can search. With a single entry, defaultValue centres the map on that record as soon as the component loads.

Key
Description

objectName

Object API name

objectLabel

Label shown in the picker

titleField

Field used as the marker title

subTitleField

Field used as the marker subtitle

iconName

SLDS icon, e.g. standard:account

latitudeField

Geolocation latitude field

longitudeField

Geolocation longitude field

defaultValue

Record Id to centre on — accepts the placeholders below

defaultDistance

Initial radius when defaultValue is set

keyPrefix

Object key prefix of defaultValue (optional — derived from the Id when omitted)

Placeholders

Placeholder
Resolves to

$recordId

Id of the host record

$record.FieldApiName

Value of that field on the host record (direct fields only)

Use $record.FieldApiName when the map lives on one object but should centre on a related record — for example a Map List on the Opportunity page centred on its Account:

The picker derives the target object from the first three characters of the resolved Id. Set keyPrefix explicitly when the Id comes from a polymorphic or custom-object field.

Next steps

Search Around Demo

After configuring the Search Around property, you're ready to begin using it. The video below provides a detailed, step-by-step tutorial on how to use the Search Around within a GM - Map List 👇

Search Around

Last updated

Was this helpful?