0

我想使用 primeface 在 jsf 中显示谷歌地图,我添加了这些行

xmlns:p="http://primefaces.org/ui"

<script type="text/javascript"  
        src="https://maps.googleapis.com/maps/api/js?sensor=true">  </script> 

      <p:gmap center="41.381542, 2.122893" zoom="15" type="HYBRID"   
    style="width:600px;height:400px" />

但它不能显示,我不知道为什么。怎么解决,谢谢帮忙。

4

0 回答 0