Google maps attributes

  • width
  • height
  • address: Address on which the viewport will be centered.
  • latitude: Point on which the viewport will be centered. If not given and no markers are defined the viewport defaults to world view.
  • longitude: Same as above but for longitude…
  • zoom: Zoom value from 1 to 19 where 19 is the greatest and 1 the smallest.
  • html: Content that will be shown within the info window for this marker. If empty no info window will be shown when the user clicks the marker.
  • popup: If true the info window for this marker will be shown when the map finished loading. If “html” is empty this option will be ignored.
  • controls: A simple array of string values representing the function names (without “()”) to add controls. Please refer to the Google Maps API for possible values. If empty the default map controls will be applied.
  • marker: true or false
  • html: Content that will be shown within the info window for this marker.
  • scrollwheel: Set to false to disable zooming with your mouses scrollwheel. If “controls” is not set this option will be ignored (because default map controls are applied).
  • maptype: Predefined variable for setting the map type. Please refer to the Google Maps API for possible values.
  • align: true or false

Simple map with marker

Displays a simple map and adds one marker. The viewport gets centered automatically.

You need to close the “gMap” shortcode if you’ll use maps with one marker before maps with multiple markers.

[gMap latitude="51.478134" longitude="0.000000"][/gMap]

Map with controls and multiple markers

Displays a simple map with controls and adds multiple markers. The viewport gets centered automatically.

[gMap address="United Kingdom, Liverpool" zoom="6"] [marker address="United Kingdom, London" latitude="0" longitude="0" html="United Kingdom, London" popup="true"] [marker address="United Kingdom, Bristol" latitude="0" longitude="0" html="United Kingdom, Bristol" popup="false"] [marker address="United Kingdom, Birmingham" latitude="0" longitude="0" html="United Kingdom, Birmingham" popup="false"] [marker address="United Kingdom, Liverpool" latitude="0" longitude="0" html="United Kingdom, Liverpool" popup="false"] [/gMap]

Different map type

Changes the map type to physical view.

[gMap latitude="51.478134" longitude="0.000000" maptype="TERRAIN"]

Map with marker and info window

Google map with info window that pops up.

[gMap latitude="51.478134" longitude="0.000000" html="Greenwich, London" popup="true"]

Map with address

You can use address instead of latitude/longitude. gMap automatically geocodes the given string and places a marker or even center the viewport.

[gMap address="Greenwich, London" html="Greenwich, London"]

Map withought controls

[gMap address="Greenwich, London" marker="false" controls="false" scrollwheel="false"]

Map with controls

[gMap latitude="51.478134" longitude="0.000000" controls="true"]

Map aligned to left

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in anim id est laborum. Allamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in anim id est laborum.

Pellentesque eget tellus vitae augue accumsan aliquet ut ut libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Fusce vulputate dignissim risus id cursus. In eu eleifend leo. Curabitur non purus lorem, sed rutrum lectus.

Donec sed placerat ipsum. Suspendisse nec augue ut arcu elementum iaculis. Nulla est felis, interdum sed viverra sed, faucibus et arcu. Quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi.

[gMap width="400" height="250" address="Greenwich, London" popup="true" align="left"]

Map aligned to right

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in anim id est laborum. Allamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in anim id est laborum.

Pellentesque eget tellus vitae augue accumsan aliquet ut ut libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Fusce vulputate dignissim risus id cursus. In eu eleifend leo. Curabitur non purus lorem, sed rutrum lectus.

Donec sed placerat ipsum. Suspendisse nec augue ut arcu elementum iaculis. Nulla est felis, interdum sed viverra sed, faucibus et arcu. Quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi.

[gMap width="400" height="250" address="Greenwich, London" popup="true" align="right"]