darshakshah1988 / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 1 forks source link

Markers not displayed #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
I am using gmaps4jsf-core-1.1.2.jar with facelets. My code looks like - 

<m:map width="500px" height="500px" zoom="15"
                            address="#
{organization.address.addressline3}, #{organization.address.city},#
{organization.address.state}, #{organization.address.country}">

<m:marker address="#{organization.address.addressline3}, #
{organization.address.city},#{organization.address.state}, #
{organization.address.country}" />

<m:htmlInformationWindow htmlText="#{organization.address.addressline3}, #
{organization.address.city},#{organization.address.state}, #
{organization.address.country}" />
                            <m:mapControl 
name="GLargeMapControl" position="G_ANCHOR_BOTTOM_RIGHT"/>

                        </m:map>

Marker is getting displayed. Any clues?

Regards,
Prashant

Original issue reported on code.google.com by prashant...@gmail.com on 14 Jan 2010 at 3:32

GoogleCodeExporter commented 8 years ago
Marker is NOT getting displayed. Any clues?

Original comment by prashant...@gmail.com on 14 Jan 2010 at 3:34

GoogleCodeExporter commented 8 years ago
This example should work, please make sure that:
#{organization.address.addressline3}, #
{organization.address.city},#{organization.address.state}, #
{organization.address.country} returns correct address.

Another note I noticed here is that the marker address is the same as the map
address, you can simply represent this by:

<m:map address="[Your address]">
<m:marker/>
</m:map>

without specifying an address for your marker.

please check the following example as well:
http://www.mashups4jsf.com/gmaps4jsf-examples/pages/addressableMarkers.jsf

Original comment by Hazem.sa...@gmail.com on 29 Jan 2010 at 11:00

GoogleCodeExporter commented 8 years ago
Please tell us on the group if you have further issues.

Original comment by Hazem.sa...@gmail.com on 30 Jan 2010 at 12:43

GoogleCodeExporter commented 8 years ago
thanks for the response. It still dosent work. I guess its due to some jars I 
am 
using. I am using myfaces-all.jar with spring and hibernate jars. I am 
attaching the 
jars that I am using. May be you can reproduce. 

Original comment by prashant...@gmail.com on 30 Jan 2010 at 6:14

Attachments:

GoogleCodeExporter commented 8 years ago
Please check this war:
http://gmaps4jsf.googlecode.com/files/GMaps4JSF_Facelets_1.1.3_August_2009_SNAPS
HOT.war

And tell me if you need any support.

Original comment by Hazem.sa...@gmail.com on 30 Jan 2010 at 10:57