Skip to Content
Engine tagsGoogle Maps

Google Maps

<googlemap> embeds an interactive map centered on a place search:

<googlemap place="Colosseum, Rome" />

Attributes

All attribute values must be in double quotes.

AttributeMeaningDefault
placeThe place to show — anything you’d type into Google Maps search. Required.
widthWidth in pixels, clamped to 200–1200600
heightHeight in pixels, clamped to 150–900450
maptyperoadmap or satellite — nothing elseroadmap
regionTwo-letter region code biasing the search, e.g. region="KR"

The map scales down responsively; width/height set its maximum size and aspect ratio.

<googlemap place="Jeju Island" maptype="satellite" width="800" height="500" />

The stock template {{Googlemap|Colosseum, Rome}} is shorthand for the plain form.

When nothing shows up

The tag renders nothing at all (no error box) when it can’t produce a map. The usual causes, in order of likelihood:

  1. Missing place, or single-quoted attribute values.
  2. A maptype other than roadmap/satellite, or a region that isn’t exactly two letters.
  3. The wiki’s operator hasn’t configured a Google Maps key — embedding is a per-wiki operator setting.

For operators: set GOOGLE_MAPS_API_KEY in the engine’s environment (a Maps Embed API key). The key appears in page HTML by design — restrict it to your wiki’s domain in the Google Cloud console.

HonoWiki (Wiki engine) guide · Content CC BY-SA 4.0