GMap - Polylines

Any number of polylines can be displayed on map. Polylines can also respond to selection by via overlaySelect behavior.

<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>


<h:form prependId="false">			
    <p:growl id="growl" life="3000" />

    <p:gmap id="gmap" center="36.890257,30.707417" zoom="13" type="HYBRID" style="width:100%;height:400px" model="#{polylinesView.polylineModel}">
        <p:ajax event="overlaySelect" listener="#{polylinesView.onPolylineSelect}" update="growl" />
    </p:gmap>					
</h:form>