S355 Insert a Google Map
Use the S355 Tag to insert Google Maps on your site. This component can display one or more location markers for single or multiple locations; but only one Google map can be added to each page. It also provides a link to directions.
Warning: Do not use this S-Tag on a secure site.
Google Maps requires several Site Options (SDPs) to be configured:
-
GMAP_ENABLED - Set to TRUE
-
GMAP_API_ADMIN_KEY - Enter the API key for administrative side, supplied by Google at http://code.google.com/apis/maps/signup.html
-
GMAP_API_USER_KEY = Enter the API key for the user side domain name if different from the administrative side, also obtainable at http://code.google.com/apis/maps/signup.html
-
GMAP_BASE_URL = Only needed if a secure proxy is to be used; otherwise, not needed
Google Map API documentation is available at http://code.google.com/apis/maps/documentation/index.html
Application
Platform
How to Enter Using the Content Editor Toolbar
This S-Tag cannot be added using the Content Editor toolbar. Add the S-Tag code to the HTML using the Plain Text View.
Luminate CMS Compatible?
No, this S-Tag cannot be added using the Luminate CMS Content Editor toolbar. Add the S-Tag code to the HTML using the Plain Text View.
Format
-
Standard
[[S355:address*title*description*color*width*height*zoom*map controls]]
-
XML
<convio:session name="355" param="address*title*description*color*width*height*zoom*map controls" />
Parameters
Note: The tokens are separated with an asterisk (*), which are separated from each other by a semicolon (;). For multiple address maps, each address, title, and marker color is separated with a semicolon (see examples, below). Each multiple map control is also separated with a semicolon.
-
address - Must include at least one of state, zip, and country; city and street are optional with state and zip
-
title - Descriptive title to render in the map
-
description - Brief (because embedded in the map itself) text contextualizing the map
-
color - Color of the markers
-
width - Integer in pixels for display
-
height - Integer in pixels for display
-
zoom - Initial zoom level
-
controls - Semicolon-separated list of map controls
Sample Code
-
Standard
Single-address example, creates a map centered on Austin TX, with a blue marker, 300x300px map, auto zoom level, and a small map control:
[[S355:Zilker Park, Austin, TX*Zilker!*Austin's weirdest park!*purple*400*400*3*GSmallMapControl;GScaleControl]]
Multi-address example that creates a map with both Austin TX and Dallas TX:
[[S355:AustinTX;DallasTX*Austin;Dallas*KeepAustinWierd;ThinkBig*blue;red*300*300*-1*GSmallMapControl;GScaleControl;GMapTypeControl]]
-
XML
<convio:session name="355" param="Zilker Park, Austin, TX*Zilker!*Austin's weirdest park!*purple*400*400*3*GSmallMapControl;GScaleControl"> </convio:session>