Closed GoogleCodeExporter closed 9 years ago
Original comment by Hazem.sa...@gmail.com
on 27 Sep 2008 at 9:13
[deleted comment]
Solved, you can now attach information to the marker using the
htmlInformationWindow
component.
Here is an example)
<m:marker>
<m:htmlInformationWindow htmlText="Iam MarkerA"/>
</m:marker>
By default the information will appear when clicking the Marker component.
However,
you can change the event of information showing by using the
"showInformationEvent"
attribute in the marker.
Original comment by Hazem.sa...@gmail.com
on 27 Sep 2008 at 11:01
Original comment by Hazem.sa...@gmail.com
on 13 Apr 2009 at 5:52
Original comment by Hazem.sa...@gmail.com
on 13 Apr 2009 at 5:54
When you attach the information window to the marker, how do you have the
information
show by default (without requiring the user to click the marker first)? I tried
several events, including "load", but nothing seems to work. I also tried
leaving off
attribute showInformationalEvent, but it seems to default to "click". I would
just
like the marker to show up. Thanks.
<m:marker>
<m:htmlInformationWindow rendered="true" htmlText="#{countryList.list[quiz.answer]}"/>
</m:marker>
I am using gmaps4jsf-1.1.3-SNAPSHOT.jar
Thanks very much!
Original comment by g...@asgteach.com
on 17 Mar 2010 at 5:36
@gail:
You can do this by:
<m:map>
<m:marker longitude="lng1" latitude="lat1"/>
<m:htmlInformationWindow longitude="lng1" latitude="lat1"/>
</m:map>
As you see, you should make the marker and htmlInformationWindow coordinates
the same.
This is all about.
Thanks for using GMaps4JSF, and if you can give us a URL to your application,
we will
appreciate much!
Original comment by Hazem.sa...@gmail.com
on 17 Mar 2010 at 6:23
Thanks, Hazem, for your quick reply. The solution you have provided does indeed
display both the marker and the information window by default. However, I would
like
the information window to appear on top of the marker, which is the visual
arrangement you get when you make the information window tag a child of marker.
It
looks much better this way.
But, making it a child of marker apparently prohibits you from displaying the
information window by default? Or, is there another solution?
Thanks very much!
Gail
Original comment by g...@asgteach.com
on 18 Mar 2010 at 1:25
I understand your point, please open a feature request here so it will be
included soon:
http://code.google.com/p/gmaps4jsf/issues/list
Original comment by Hazem.sa...@gmail.com
on 18 Mar 2010 at 6:41
Original issue reported on code.google.com by
Hazem.sa...@gmail.com
on 27 Sep 2008 at 9:12