GMap - Rectangles Any number of rectangles can be displayed on map. Rectangles can also respond to selection by via overlaySelect behavior.
<h:form>
    <p:growl id="growl" life="3000" />

    <p:gmap id="gmap" center="36.880257,30.687417" zoom="13" type="HYBRID" style="width:100%;height:400px" model="#{rectanglesView.rectangleModel}" >
        <p:ajax event="overlaySelect" listener="#{rectanglesView.onRectangleSelect}" update="growl" />
    </p:gmap>
</h:form>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.