View Source

h2. Overview

Activates a layer on the parent gMap that's designed to provide an alternative visual, such as displaying bike paths, traffic, or third-party KML data.


{tip}See the ICEfaces Showcase [Live Demo|http://icefaces-showcase.icesoft.org/showcase.jsf?grp=aceMenu&exp=gMapLayerBean] of this component, complete with source code.{tip}

h2. Getting Started
{code}
<ace:gMap id="gMapLayer" style="width: 675px; height: 500px" zoomLevel="16" latitude="${gMapLayerBean.lat}" longitude="${gMapLayerBean.lon}">
<ace:gMapLayer id="BikeLayer" layerType="Bicycling" visible="${gMapLayerBean.bikeLayer}"/>
</ace:gMap>
{code}

h2. Attributes
{tip:title=TagLib Documentation}

This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available [here|http://www.icefaces.org/docs/v4_latest/ace/tld/ace/gMapLayer.html].
{tip}

{panel}
*layerType* The type of layer that you wish to create. Options are 'Bicycling', 'Traffic', 'Transit', 'Fusion' and 'Kml'. (Case insensitive)
{panel}

h2. Additional Notes

Multiple layers aren't supported by the Google Maps API. Only one layer type can be displayed at a time.