Closed GoogleCodeExporter closed 9 years ago
1. You must add the following to the backing bean constructor (still don't know
why
this works as opposed to just setting the lib in the <head> tag):
JavascriptContext.includeLib("http://maps.google.com/maps?file=api&v=2&key=abc",
FacesContext.getCurrentInstance());
2. You must set the renderOnWindowLoad attribute for the Gmaps4JSF:
This flag determines whether to render the map on window load. This flag should be
set to false if the map is inside a zone that will be updated by Ajax.
<m:map width="800px" height="600px" autoReshape="true" type="G_HYBRID_MAP"
renderOnWindowLoad="false">
Original comment by brent.fr...@gmail.com
on 9 Jun 2009 at 4:33
Done thanks to Brent!
Original comment by Hazem.sa...@gmail.com
on 10 Jun 2009 at 3:06
This also seems to work and let you use the standard configuration for the
ICEfaces
gMaps implementation:
<style type="text/css">
.iceGmpMapTd div.gmap {width: 0px; height: 0px}
.iceGmpMapTd {visibility: hidden}
</style>
<ice:gMap/>
<m:map .../>
The gMap definition renders the ICEfaces gmaps environment into the HTML, the
style
hides the ICEfaces component. The sequence of the styles is important.
I tried to set <ice:gMap rendered="false"/> but this doesn't render the
necessary
environment.
Original comment by rainwebs
on 25 Jun 2009 at 1:13
Original issue reported on code.google.com by
Hazem.sa...@gmail.com
on 8 Jun 2009 at 6:20