Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICE Components
Tag gMap

This component uses the version 2 of the Google Maps API. In order to use the google maps, an API key is required. The API key can be obtained from the google maps' website. You must need to specify the API key in the web.xml(e.g.)
<context-param>
<param-name>com.icesoft.faces.gmapKey</param-name>
<param-value>ABQIAAAADlu0Z........</param-value>
</context-param>

Tag Information
Tag Class | com.icesoft.faces.component.gmap.GMapTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
address | false | false | `java.lang.String` | The ice:gMap component can locate an address on the map, using the GClientGeocoder implicitly. (e.g.) To render a map with the default location. <ice:gMap address="Calgary"/> To locate the address dynamically, the address needs to be bind with the bean and "locateAddress" attribute needs to return "true", when map needs to be located (e.g.) <ice:inputText value="#{gmap.address}" valueChangeListener="#{gmap.addressChanged}" /> <ice:gMap address="#{gmap.address}" locateAddress="#{gmap.locateAddress}"/> Note: The valueChangeListener sets the value of the "locateAddress" to true of false, that causes the address to be locate on the google map.
binding | false | false | `java.lang.String` | The value binding expression linking this component to a property in a backing bean
id | false | false | `java.lang.String` | The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
latitude | false | false | `java.lang.String` | The latitude of the Map
locateAddress | false | false | `java.lang.String` | This attribute tells to the map to locate the address if set to true.
longitude | false | false | `java.lang.String` | The longitude of the Map
rendered | false | false | `java.lang.String` | Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
renderedOnUserRole | false | false | `java.lang.String` | If user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.
style | false | false | `java.lang.String` | CSS style(s) to be applied when this component is rendered.
styleClass | false | false | `java.lang.String` | Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup. The base name for all style classes. Default value is iceGmp iceGmpMapTd (this class will apply on the td, that contains the google map) iceGmpTxtTd (this class will apply on the td, that contains the default textual div used by GDirection component
type | false | false | `java.lang.String` | Type of the map. The following are the valid values: Satellite Hybrid Map To render a map in Statellite view: <ice:GMap type="Satellite" address="Calgary" />
zoomLevel | false | false | `java.lang.String` | Set the zoom level of the map <ice:GMap zoomLevel="6" />

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.