Skip to main content
The Boxpressd Sites SDK includes map components that help customers find lounges, retailers, event venues, and other business locations. Map components automatically use the business context resolved by the BoxpressdProvider.

Available Components

BoxpressdMap

Use BoxpressdMap to display the active business location.

Props

Example: Contact Page Map

Example: Compact Map

Example: Full-Width Section

Business Context

The map automatically loads location data for the business associated with your API key. For a venue, this usually includes:
  • Business name
  • Street address
  • City
  • State
  • Postal code
  • Latitude and longitude
  • Google Maps directions link
For a brand, map behavior may vary depending on whether the brand has a public business location.

Location Overlay

When showOverlay is enabled, the map can display a card with business details.
Typical overlay information may include:
  • Business name
  • Address
  • Hours
  • Phone number
  • Directions link
When enabled, directions links can open the business location in Google Maps.
This is especially useful on:
  • Contact pages
  • Visit pages
  • Event pages
  • Location sections
  • Mobile landing pages

Use address directly

Styling

Map components inherit Boxpressd theme variables.

Scoped Styling

Common Use Cases

Contact Page

Homepage Location Section

Event Details Page

Best Practices

  • Use the map on contact and visit pages.
  • Include directions links for mobile visitors.
  • Use an overlay when the map is the main location section.
  • Keep compact maps shorter on homepages.
  • Use larger maps on dedicated contact pages.
  • Gracefully hide the map if no location data is available.

Troubleshooting

Map Does Not Appear

Verify:
  • The provider is configured correctly.
  • The API key belongs to the expected business.
  • The business has location data.
  • The map container has a valid height.
Verify:
  • The business has a valid address.
  • Latitude and longitude are configured.
  • showDirectionsLink is enabled.

Overlay Is Missing

Verify:
  • showOverlay is enabled.
  • The business has public location details available.

Next Steps

Continue to:
  • Events
  • Reviews
  • Check-ins
  • Sessions
  • Theming