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
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
[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
[gMap latitude="51.478134" longitude="0.000000" maptype="TERRAIN"]
Map with marker and info window
[gMap latitude="51.478134" longitude="0.000000" html="Greenwich, London" popup="true"]
Map with address
[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
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
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"]