Showing posts with label Google Map. Show all posts
Showing posts with label Google Map. Show all posts

Saturday, January 24, 2015

PrimeFaces Google Map | Google Map (gmap) not Rendering in PrimeFaces

Google Map Properties

For google map to be rendered correctly, you need specify the following properties:
center, zoom, type and style, such as
<p:gmap center="41.381542, 2.122893" zoom="15" type="HYBRID" style="width:600px;height:400px" />
You can find details here:
http://stackoverflow.com/questions/4754708/primefaces-gmap-not-rendering

Longitude and Latitude Order

However, if you have done all these but the map is still not rendered, please check the 'center' property, for which you should put latitude before longitude. In the example above, 41.381542 is the latitude while 2.122893 is the longitude.


Create a Successful Online Store at Bigcommerce! Try it Free Now!