Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
</h:head>
<h:body>
<p:gmap center="41.381542, 2.122893" zoom="15" type="HYBRID" style="width:600px;height:400px" />
</h:body>
</html>
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<script type="text/javascript" src="/primefaces_resource/2.1-SNAPSHOT/yui/utilities/utilities.js"></script>
<script type="text/javascript" src="/primefaces_resource/2.1-SNAPSHOT/jquery/jquery.js"></script>
<script type="text/javascript" src="/primefaces_resource/2.1-SNAPSHOT/primefaces/core/core.js"></script>
<script type="text/javascript" src="/primefaces_resource/2.1-SNAPSHOT/primefaces/gmap/gmap.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script></head><body><div id="j_idt4" style="width:600px;height:400px"></div><script type="text/javascript">
//<![CDATA[
widget_j_idt4 = new PrimeFaces.widget.GMap('j_idt4',{mapTypeId:google.maps.MapTypeId.HYBRID,center:new google.maps.LatLng(41.381542, 2.122893),zoom:15});
//]]>
</script></body>
</html>