GMap Macros are short snippets of text that combine various configuration options for presenting a GMap in Views, node content (through a filter), or other places. These macros are a Drupal-only concept and are provided by the GMap module.
An example of a complete GMap macro looks like this:
[gmap markers=blue::41.902277040963696,-87.6708984375 |zoom=5 |center=42.94033923363183,-88.857421875 |width=300px |height=200px |control=Small |type=Map]
Note that a GMap macro is always defined with a |
(pipe) character between each attribute. Spaces before and after the pipe are optional.
Basic Attributes
Attribute: center
Values: lat,lon
Description: map center
Example: center=39.36827914916013,-81.5625
Attribute: width
Values: css dimension
Description: map width, in valid css dimensions (generally pixels or percent)
Example: width=100%
Attribute: height
Values: css dimension
Description: map height, in valid css dimensions (generally pixels)
Example: height=400px
Attribute: zoom
Values: 0-17
Description: the initial zoom level of the map
Example: zoom=7
Attribute: type
Values: "Map", "Satellite", "Hybrid", "Terrain"