Overview
The Map Block integrates Google Maps directly into your WordPress pages, allowing you to display locations, business addresses, custom markers, and interactive maps. Perfect for contact pages, store locators, event locations, and location-based content.
Key Features
- Google Maps Integration: Powered by Google Maps API
- Address Search: Enter address and automatically geocode to coordinates
- Custom Markers: Add custom map markers and info windows
- Map Styles: Standard, satellite, terrain, or custom styles
- Zoom Controls: Set initial zoom level and controls visibility
- Responsive: Automatically adjusts to container width
- Height Control: Customizable map height
How to Use
- Add the Map block to your page
- Enter an address or coordinates in settings
- Adjust zoom level (1-20)
- Choose map style
- Set map height
- Configure controls
- Preview and publish
Google Maps API Setup
To use the Map block, you need a Google Maps API key:
- Go to Google Cloud Console
- Create a new project
- Enable Maps JavaScript API
- Create API credentials
- Add API key in WordPress Admin > DesignSetGo > Settings
Common Use Cases
- Contact Pages: Show business location
- Store Locators: Display retail locations
- Event Venues: Show event locations
- Real Estate: Property locations
- Directions: Help visitors find your location
Best Practices
- Set appropriate zoom level (14-16 for street level)
- Use descriptive marker titles
- Choose map height appropriate for content (400-600px)
- Enable zoom/pan controls for better UX
- Provide address text for accessibility
- Restrict API key to your domain for security
Troubleshooting
- Map not displaying: Verify API key is valid
- Wrong location: Check address spelling, try coordinates
- Map too small: Increase height setting
- Controls not showing: Enable control settings