Overview

PropertyValue
Block nameaegis/map
Registered byAegis companion plugin
RequiresAegis theme + Aegis plugin

The theme does not register this block. Enable it (or any Map extra) at Aegis → Blocks → Map.

Configuration

Google Maps API keys

Aegis → Connectors → Google Maps

Google Maps keys live in Aegis → Connectors.

SettingPurpose
Google Maps toggleEnables Google as a Map block provider (Save Settings)
Browser API keyFrontend map tiles, editor preview, and interactions (HTTP referrer; never enable Geocoding on this key)
Server API keyServer-side geocoding (editor address search, Directions resolve, Test Connection)
Save / TestSave when either key is set (masked values preserved); Test requires the server key (toggle not required first)

See Connectors.

OpenStreetMap

You can set the block provider to OpenStreetMap at any time (no API key). OpenStreetMap Fallback is separate: when it is on and Google Maps has no key, a block set to Google Maps renders OSM instead. When the fallback is off, that block shows a configuration notice instead of OSM.

Feature Toggles

Enable extras at Aegis → Blocks → Map. They are grouped by provider. They are off on new installs. Existing sites keep previously implicit-on extras.

Google Maps

ToggleWhat it does
Map Style PresetsSilver, Dark, Retro, Night, and Aubergine Google Maps styles (also applied to the Static Maps facade).
Map ControlsZoom, map type, street view, fullscreen, scroll-wheel, and drag controls.
DirectionsPro. Route between origin and destination (addresses resolved with the server Geocoding key; frontend receives coordinates only).
Store LocatorPro. Search box matches marker titles or lat,lng, then draws a radius circle.
GeolocationPro. Button to show the visitor’s location.
Heatmap LayerPro. Density overlay (loads the Google visualization library).
Drawing ToolsPro. Polygon, circle, rectangle, and polyline overlays.
KML/GeoJSON ImportPro. External geographic data layers.
Dynamic CPT MarkersPro. Markers from a custom post type’s lat/lng meta.
Custom Style JSONPro. Raw Google Maps style array (overrides presets, including the Static Maps facade).
Custom Marker IconsPro. Media-library marker icons (interactive map and editor preview; not the static facade).
Marker ClusteringPro. Groups nearby markers at lower zoom levels (vendored MarkerClusterer, no CDN). Editor preview included.

OpenStreetMap

ToggleWhat it does
OpenStreetMap FallbackUse OSM when a Google Maps block has no API key. You can also set the block provider to OpenStreetMap directly.

Shared

ToggleWhat it does
Multiple MarkersExtra markers with title/description info windows. The primary location pin always remains.
Schema.org MarkupLocalBusiness JSON-LD from the block’s schema fields (skipped when an SEO plugin owns local business schema).

Pro inspector panels and frontend output follow these toggles. Schema markup is a free feature, not a Pro panel.

Usage

Set the location and map options in the block settings.

  1. Install and activate the Aegis theme and Aegis plugin.
  2. Enable the Map block extras you need at Aegis → Blocks → Map.
  3. Configure Maps under Aegis → Connectors → Google Maps (optional if you only use OSM).
  4. Insert the Map block and set location, zoom, and extras.

Google Maps uses a click-to-load facade (static preview with the same style presets as the interactive map, then the JS API). Contact patterns aegis/form-map and aegis/form-map-overlay register only while the Map block is enabled — see Plugin Patterns.

Rendering

Click-to-load facade

Google Maps blocks render a Static Maps image until the visitor clicks. That image uses the same style presets as the interactive map. Pro Custom Style JSON overrides the preset on the facade when the extra is on and the value is a non-empty JSON array.

Image placeholder
Maps load only when the visitor clicks.

Custom marker icons are not drawn on the static image; they apply after the interactive map loads. If adding style rules would make the Static Maps URL longer than about 8192 characters, the facade omits styles so the image still loads.

Editor preview

The block editor shows the Google Map when a browser API key is configured. Style presets and markers follow the free extras. With Pro extras on, custom icons, custom style JSON, and clustering apply in the editor preview. Directions, heatmap, and drawing run on the frontend (Directions addresses are geocoded server-side first).

Marker clustering (Pro)

Clustering uses a vendored MarkerClusterer (@googlemaps/markerclusterer 2.5.3) bundled with Aegis Pro. It does not load from a CDN. The script is enqueued when Marker Clustering is enabled.

Next Steps