GMap - Event

Map can respond to various events such as click, zoom change and overlay select.

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


       <h:form prependId="false">	
    <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>

FREE THEMES

Built-in component themes created by the PrimeFaces Theme Designer.

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.