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 Classcom.icesoft.faces.component.gmap.GMapTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
addressfalsefalsejava.lang.StringThe 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.
bindingfalsefalsejava.lang.StringThe value binding expression linking this component to a property in a backing bean
idfalsefalsejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
latitudefalsefalsejava.lang.StringThe latitude of the Map
locateAddressfalsefalsejava.lang.StringThis attribute tells to the map to locate the address if set to true.
longitudefalsefalsejava.lang.StringThe longitude of the Map
renderedfalsefalsejava.lang.StringFlag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
renderedOnUserRolefalsefalsejava.lang.StringIf 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.
stylefalsefalsejava.lang.StringCSS style(s) to be applied when this component is rendered.
styleClassfalsefalsejava.lang.StringSpace-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
    typefalsefalsejava.lang.StringType 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" />
    zoomLevelfalsefalsejava.lang.StringSet the zoom level of the map <ice:GMap zoomLevel="6" />

    Variables
    No Variables Defined.


    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.