BoxpressdProvider.
Available Components
| Component | Description |
|---|---|
BoxpressdMap | Displays a map for the active business location. |
BoxpressdMap
UseBoxpressdMap to display the active business location.
Props
| Prop | Type | Description |
|---|---|---|
height | number | string | Map height. |
zoom | number | Initial map zoom level. |
showOverlay | boolean | Displays a location details overlay. |
showDirectionsLink | boolean | Displays a directions link. |
className | string | Additional CSS classes. |
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
Location Overlay
WhenshowOverlay is enabled, the map can display a card with business details.
- Business name
- Address
- Hours
- Phone number
- Directions link
Directions Links
When enabled, directions links can open the business location in Google Maps.- Contact pages
- Visit pages
- Event pages
- Location sections
- Mobile landing pages
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.
Directions Link Is Missing
Verify:- The business has a valid address.
- Latitude and longitude are configured.
showDirectionsLinkis enabled.
Overlay Is Missing
Verify:showOverlayis enabled.- The business has public location details available.
Next Steps
Continue to:- Events
- Reviews
- Check-ins
- Sessions
- Theming