GMap - Event Map can respond to various events such as click, zoom change and overlay select.
<h:form>	
    <p:growl id="messages" showDetail="true" life="2000" />

    <p:gmap id="gmap" center="41.381542, 2.122893" zoom="15" type="ROADMAP" style="width:100%;height:400px">
        <p:ajax event="stateChange" listener="#{eventView.onStateChange}" update="messages" />
        <p:ajax event="pointSelect" listener="#{eventView.onPointSelect}" update="messages" />
    </p:gmap>
</h:form>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.