AX - Map
Overview
AX - Map shows Salesforce records from any standard or custom object as markers on your Experience Sites pages, placed by address or by latitude and longitude. Site users click a marker to see the record's details or open it. Use it for store locators, service territories, event venues or customer sites.

Getting Started
A short interactive tutorial on the basics.
Configuration
Select the map in Experience Builder to open its settings in the Properties Panel.
Data Source
Connects the map to your Salesforce data.

Manual
Entered by hand.
Fixed data, testing, demos.
Query
Loaded by a Salesforce query.
Live, real-time, large datasets.
Data Mapping
In Data Mappings, pick the field behind each part of a marker. Value identifies it (default {{Record.Id}}). Location depends on the engine:

Google Maps
An address (Street, City, State, Postal Code, Country) or Latitude and Longitude.
Leaflet
Latitude and Longitude, required. City optional, for the route's stop list and CSV.
Filters
Filters: the fields site users filter markers on (menu: see Filtering & Search).
Search Fields
Search Fields: the fields the search bar searches. Requires Show Search.
Per-Marker Settings
With a Manual data source, each marker row has its own fields:

Title, Description
Marker and popup labels.
Icon Name
Marker icon.
Type
Default, Circle, Rectangle, Polygon, Pin or Custom Icon. All six on both engines.
Radius, Bounds, Paths
Shape geometry: circle radius in meters (default 25), rectangle edges, polygon points.
Fill Color, Fill Opacity, Stroke Color, Stroke Opacity, Stroke Weight
Shape colors.
SVG Path, Scale, Anchor
The Custom Icon drawing, with its own fill and stroke.
Location, On Select, On Drag
As in the Location table above, and Interactions below.
Map Settings

Type picks the engine. Google Maps (default): the familiar Lightning map, simplest, up to 1,000 markers. Leaflet: no marker cap, adds clustering, drawing and routes, places markers by coordinates only, and needs https://tile.openstreetmap.org in your org's Trusted Sites to load its tiles.


List Title
Google Maps
Title of the location list.
List View
Google Maps
Visible, Hidden or Auto (default: shown with several markers).
Hide Zoom Controls
Both
Removes the zoom buttons.
Zoom Controls Position
Leaflet
A map corner. Unset: the map decides. Hidden with Hide Zoom Controls.
Zoom Level
Both
Initial zoom. Unset: fits all markers.
Disable Dragging
Both
No click-and-drag panning.
Disable Scrollwheel Zooming
Both
No mouse-wheel zoom.
Disable Double Click Zoom
Both
No double-click zoom.
Disable Default UI
Google Maps
Hides standard controls, such as Street View.
Draggable Markers
Leaflet
Site users can move markers. A drag can run On Drag.
Disable Auto Pan Markers
Leaflet
No auto-panning to keep markers in view.
Show Footer
Google Maps
Footer, for data sources or a legend.
Show Search
Both
Search bar to find and zoom to a location.

Header
Header Title, Header Caption
Text at the top of the map.
Header Title Text Style, Header Caption Text Style
A site text style for each, once its text is set.
Header Icon Name, Header Icon Size
Header icon and its size (default medium, requires the icon).
Header Is Joined
Flush with the map: no rounded bottom corners or shadow.
Header Actions
Header buttons. Each entry in Actions: Label, Name, Icon Name, Title (hover text), Alternative Text, On Click (any interaction below but Open Flow Panel). Visible Actions Buttons: how many show before a menu.
Center Location
By default the map centers on its markers. Center Location overrides it:
Latitude, Longitude: the exact center, ahead of the address.
Street, City, State, Postal Code, Country: center by address. Google Maps only.
Display As Marker: shows the center as a marker, whose Type sets its shape.
Clustering
Leaflet only. Marker Clustering groups nearby markers so dense maps stay readable.

Enable Marker Clustering: on, with the settings below.
Coverage On Hover: outlines a cluster's markers on hover.
Max Cluster Radius: reach from the central marker, in pixels. Default 80.
Disable Clustering Zoom Level: no clustering at and below this zoom.
Draw
Leaflet only. Site users draw shapes and can save them as a Salesforce file.

Enable Draw
Adds the drawing toolbar. The settings below need it.
Draw GeoJSON Value
Shapes to load: a GeoJSON object or array. Hidden while Save as Content Document is on.
Toolbar
Line, Polygon, Circle, Marker, Edit, Delete. Default: all six.
Toolbar Position
A map corner. Default Bottom Right.
Save as Content Document
Saves the drawing as a file (ContentDocument), with a Save button.
With Save as Content Document on:
Auto Save Content Document
Saves every change, no Save click.
Content Document Id
File to update. Empty: the first save creates one, later saves in the visit update it.
Content Document Title
Default "Avonni Map Drawing Document".
Content Document Linked Entity Id
Record the file is linked to.
Save Button Label
Default "Save".
Route
Leaflet only. Site users build a multi-stop driving route from the markers.

Show Route Panel
A Route button (route icon) in the header actions, opening the Route panel.
None
Disable Multi-Stop Selection
No area select, so stops are added one marker at a time.
Show Route Panel
Position
Panel side: Right (default) or Left.
Show Route Panel
Display Overlaid on the Map
Panel over the map, not beside it, Route button on the map (in the header on a phone).
Show Route Panel
Opened by Default
Panel open on load.
Show Route Panel
By default, the panel opens beside the map:


In the panel, the site user:
Calculates the route
Calculate route draws the roads, with each stop's distance and drive time. On Mapbox, also departure, arrival, total duration and arrival times, visits and lunch included. Stops after End of day are marked, never dropped:

The panel's Settings, with their defaults:

Lunch start, Lunch end
A route under way at lunch pauses for the whole window, driving or at a stop. Must end after it starts, between departure and end of day.
12:00 to 1:00 p.m.
End of day
Last time on the road. Later stops are flagged.
6:00 p.m.
Visit duration (minutes)
Time at each stop, delaying later stops. First and last stops delay nothing.
30
Timing
Mapbox only (the one provider that models traffic). Leave now, Leave at or Arrive by; the last two add a Date and Time.
Leave now; Time 8:00 a.m.
Avoid ferries, Avoid highways, Avoid tolls
Keep the route off them.
Off
Filtering & Search
Filters (in Data Mappings) pick the fields, the Filter section sets the menu. Each filter has an operator menu.

Type
Horizontal (default), Popover or Panel (in the side panel).
Display Overlaid on the Map
Horizontal or Popover filters over the map, not the header. Panel filters: Side panel overlay.
Picklist Filter Sort Order
Ascending (default), Descending or Default Order of Field.
Use Record Picklist Values
Options from values present in the records: empty values hidden.
Use Cascading Filter Values
Each filter narrows the others' options to matching records. Overrides Use Record Picklist Values.
Text, picklist, multi-select picklist, lookup
Equals, Not Equals, Empty, Not Empty
Number, date, time
Between, Not Between, Equals, Not Equals, Less Than, Less or Equal, Greater Than, Greater or Equal, Empty, Not Empty
Checkbox
No operator menu
Empty and Not Empty take no value: the inputs hide.
The Search section (requires Show Search):
Placeholder
Empty search bar text. Default "Search".
Position
Left (default), Right, Center, Fill (header), Panel (side panel) or Overlaid on the Map (header on a narrow map).
Side Panel
Holds the filters or search set to Panel. On a phone-width map: filters in a popover, search in the header.

Position: Left (default) or Right.
Reset Button Label: the clear button. Default "Clear all selections".
Display Overlaid on the Map: picks one of the two layouts below.
Off: a column beside the map, toggled from the header.
Closed by Default: starts closed.
Hide Toggle Button: hides the header toggle.
On: floats over the map, opened from a button on the map.
Opened by Default: open on load.
With the Route panel also overlaid, one opens at a time.
Interactions
Set per marker (Manual) or in Data Mappings (Query).
On Select fires on a click, On Drag on a drag (Leaflet, Draggable Markers on). Both offer:
Brief notification.
Opens another site page or a URL.
Alert message in a modal.
Asks for confirmation, for example of event attendance.
Runs a flow in a dialog.
Runs a flow in a side panel, markers still visible.
Runs an autolaunched flow in the background, no dialog or panel.
A Salesforce file, a public link or a URL.
Refresh All Queries
Re-runs every query on the page.
Refresh Query
Re-runs the map's own query. Query data source only.
Styling
From the Style section. Leaflet maps add Map Markers, Zoom Controls, Draw Controls and Route Panel.
Outer spacing.
Inner spacing.
Width / Height / Min Width / Max Width / Min Height / Max Height.
Size / Style / Color / Radius.
Header: Background Color; Padding (each side); Margin Bottom.
Header Border: Color / Size / Style / Radius; Bottom Border Color / Size / Style (with Header Is Joined).
Header Title, Header Caption: Color / Font Size / Font Weight / Font Style.
Header Avatar: Background Color / Foreground Color / Border Radius.
The marker popup.
Map Markers Background: Color.
Map Markers Title: Text Color / Font Size / Style / Weight.
Map Markers Description: Color / Font Size / Style / Weight / Line Clamp.
Text / Background / Shadow Color; Border Color / Size / Style / Radius.
Background / Shadow Color; Border Color / Size / Style / Radius.
Route Panel: Background Color; Border Color / Size / Style / Radius.
Route Panel Header: Background Color / Color / Font Size / Font Weight.
The side panel.
Filters Panel: Background Color; Border Color / Size / Style / Radius.
Filters Panel Labels: Background, Color (each plain, Active, Hover); Collapse Icon Color; Font Size / Weight.
Filters Panel Options: Color; Checkbox Border Color; Load More Button Text Color (plain, Active, Hover).
Filters Panel Reset Button: Background / Text / Border Color; Border Size / Radius; Background and Border Color Hover; Background and Border Color Active.
Flow Dialog Header: Background; Bottom Border Color / Size; Label Color / Font Size / Font Weight.
Flow Dialog Footer: Background; Top Border Color / Size.
Flow Panel: Background Color; Border Color / Size / Style / Radius.
Flow Panel Header: Background; Bottom Border Color / Size; Label Color / Font Size / Font Weight; Close Icon Color (plain, Active).
Use Cases
Learn to display records on Experience Cloud using Avonni Map.
Example 1 : Reactive Account Map
The map shows the billing location of the account a rep selects in an Accounts Data Table. Before you begin: an Accounts Data Table on the page, API name AccountsTable.
Example 2 : Customer Order Tracking
Customers see where their order is. Before you begin: a custom Geolocation field on Order holding the tracking coordinates.
Troubleshooting Common Issues
No Route button on the map
Type is not Leaflet, or Show Route Panel is off.
Set Type to Leaflet, turn on Show Route Panel in Route.
Route shows enablement guidance
Routing not enabled for this package.
An administrator enables it in the Avonni Experiences app, Settings tab: see Enable Map Routing.
A straight line instead of roads
Provider unreachable or quota spent. The line keeps the stop order visible.
If every route falls back: in Setup, Remote Site Settings, activate Avonni_Route_Mapbox and Avonni_Route_ORS.
No Timing setting, no arrival times
OpenRouteService is the provider. Times, and the CSV's Arrival Time, are Mapbox only.
Expected. Arrival times need Mapbox.
Markers missing on a Leaflet map
Records have an address but no coordinates.
Map Latitude and Longitude under Location, or set Type to Google Maps.
Last updated
Was this helpful?



