|
/ Documentation /Spectra 3 Beta/ Google Maps In Spectra

Google Maps In Spectra

Introduction

The Google Map Block allows you to embed interactive Google Maps into your WordPress pages with customizable features. Perfect for contact pages, location directories, store finders, or any content that benefits from geographical context. The block offers extensive customization options including satellite view, multiple language support, and responsive controls.

How to Add or Use the Block in the Gutenberg Editor

  1. Adding the Block
    • Click the “+” button in the editor
    • Search for “Google Map” or navigate to the Spectra category
    • Click on the Google Map Block to add it
    • The block will display a default map location
  2. Configuring the Map
    • Enter your desired location in the address field
    • Adjust zoom level for desired detail
    • Choose between roadmap and satellite view
    • Set map height and other dimensions
    • Select preferred language for map labels
  3. Customizing Display
    • Adjust map dimensions
    • Set border and shadow styles
    • Configure spacing and alignment
    • Choose wide or full-width layout

Block Styling Options

General Settings

OptionDescriptionAvailable Settings
AddressLocation to displayText input with geocoding
Satellite ViewToggle map typeOn/Off toggle
Zoom LevelMap zoom control1-20 scale
LanguageMap interface language65+ language options

Dimension Settings

OptionDescriptionAvailable Settings
HeightMap container heightpx, %, vh, em, rem
WidthMap container widthWide, Full-width, Default
PaddingInternal spacingTop, Right, Bottom, Left
MarginExternal spacingTop, Right, Bottom, Left

Border Settings

OptionDescriptionAvailable Settings
Border WidthBorder thicknesspx units
Border ColorBorder colorColor picker
Border StyleBorder appearanceSolid, Dashed, Dotted
Border RadiusCorner roundingpx, % units
Box ShadowDrop shadow effectMultiple shadow layers

Language Support

The block supports over 65 languages including:

  • English (default)
  • Spanish
  • French
  • German
  • Chinese
  • Japanese
  • Arabic
  • Russian [View full language list in settings]

Advanced Features

Satellite view

Satellite: Aerial photography view

Responsive Behavior

  • Fluid width adaptation
  • Responsive height controls
  • Mobile-friendly interactions
  • Touch gesture support

Tips and Best Practices

Performance

  • Use appropriate zoom levels
  • Consider mobile loading times
  • Optimize for viewport size
  • Enable lazy loading when available

Accessibility

  • Provide descriptive addresses
  • Consider keyboard navigation
  • Use appropriate color contrast
  • Include alternative content

Common Use Cases

  1. Business Locations
    • Store locators
    • Office directions
    • Service area maps
    • Branch networks
  2. Event Venues
    • Conference locations
    • Festival grounds
    • Meeting points
    • Parking information
  3. Property Listings
    • Real estate locations
    • Rental properties
    • Development sites
    • Neighborhood context
  4. Travel Content
    • Tourist attractions
    • Travel guides
    • Route planning
    • Point of interest maps

Troubleshooting

Map not displaying?

  • Verify Google Maps API key is configured
  • Check internet connection
  • Ensure address is valid
  • Clear browser cache

Address not found?

  • Check spelling and format
  • Use complete addresses
  • Try adding city/country
  • Use coordinates if needed

Styling issues?

  • Verify container dimensions
  • Check responsive settings
  • Clear theme conflicts
  • Update block settings

Frequently Asked Questions

Q: Do I need a Google Maps API key? 
A: NO, Google Maps API key is not required for the map to function.

Q: Can I add multiple locations? 
A: Currently, the block supports one primary location per map.

Q: How do I make the map responsive? 
A: Use relative units (%, vh) for height and the block will adapt to container width.

Q: What’s the maximum zoom level? 
A: The zoom level ranges from 1 (world view) to 20 (building level).

Q: Can I customize map styles? 
A: Basic styling through satellite/roadmap toggle. Custom styles may comes in future updates.

Compatibility and Requirements

System Requirements

  • WordPress: 6.6.0 or higher
  • PHP: 8.1 or higher
  • Browser: Modern browsers with JavaScript enabled

Theme Compatibility

  • Works with all standard WordPress themes
  • Supports block-based themes
  • Responsive in most layouts
  • May require styling adjustments for specific themes

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.