GMap - Map in Dialog

This sample demonstrates using map inside a dialog.

<p:commandButton id="btn" type="button" icon="ui-icon-pin-s" value="Show Map" onclick="PF('dlg').show();" />
			
<p:dialog id="gmapDialog" widgetVar="dlg" width="625" height="400" modal="true">
    <p:gmap id="gmap" center="41.381542, 2.122893" zoom="15" type="HYBRID" style="width:100%;height:400px" />
</p:dialog>