Show your address with Google Maps

The package shows a map on a web page for a specific address using Google Maps. The address should be specified as "25 Some Street, Some City".  The map can be set to a specific zoom level and its sizes are adjustable.

How to implement Composite.Maps.GoogleMaps

  1. Edit a page.
  2. Insert the Composite.Web.Maps.GoogleMaps function ( Insert | Function) or add the following code:
     
    <f:function name="Composite.Web.Maps.GoogleMaps" xmlns:f="http://www.composite.net/ns/function/1.0"> 
      <f:param name="Address" value="25 Some Street, Some City" /> 
      <f:param name="Zoom" value="15" /> 
      <f:param name="Width" value="400" /> 
      <f:param name="Height" value="400" /> 
    </f:function>
  3. Specify the address in the required Address parameter, e.g. "25 Some Street, Some City".
  4. Specify the optional parameters if necessary:
  • Zoom: The zoom level of the map from 1 to 21. 14 by default.
  • Width: The width of the map on a page. 400 by default.
  • Height: The height of the map on a page. 400 by default.

Requirements

Composite C1 version 2.0 or later

SHARE