Wiki Macros

Macros look like this in wiki syntax:

{{?name | parameter1=value1 | parameter2=value2}}

Use three brackets to supply parameters on separate lines.

| parameter1=value1
| parameter2=value2

Static Map

The staticmap macro generates a non-interactive image that displays a map. Use macro parameters to determine what area of the world should be displayed, how large the image should be, etc.

{{?staticmap | size=400x200 | zoom=13 | type=terrain | center=Bellingham, WA}}

Supported Parameters

center Describes the center of the map. A street address or comma-separated latitude/longitude pair.
size The size of the image, (width)x(height), e.g. 400x200.
zoom The zoom level. Zero (0) shows the entire earth; higher numbers get closer.
format The image format, e.g. png (default), jpg, gif.
type The type of map; roadmap (default), satellite, hybrid, or terrain.
marker Adds a marker to the map.
marker-image Image URI to be used by subsequent markers.

All parameters are optional.

A map can display one or more markers with one or more marker parameters. To display a marker with the default style, simply specify a street address or latitude/longitude. You can change the color, size, and/or uppercase alphanumeric label of the marker with prefixes.

| size=400x200
| zoom=17
| type=hybrid
| marker=label:1|1313 Commercial St, Bellingham, WA
| marker=label:2|1331 Commercial St, Bellingham, WA
| marker=label:3|1313 Bay St, Bellingham, WA

Read about the Google Static Maps API for more information, especially about the full marker syntax.

Interactive Map

The map macro generates an interactive map. It supports the same parameters as staticmap above.

| size=400x200
| zoom=16
| type=hybrid
| marker=1313 Commercial St, Bellingham, WA
| marker=1331 Commercial St, Bellingham, WA
| marker=1313 Bay St, Bellingham, WA

Markers are not supported as well as in static maps as of this writing. In particular, custom size, color, and label are not currently supported.

Logos Topics

Welcome, Guest! (sign in)