darshakshah1988 / gmaps4jsf

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

Ability to display information window by default when information window is child tag of marker tag #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
<m:map id="map" width="400px" height="400px"
                       latitude="#{lat}"
                       longitude="#{lng}" zoom="4">
   <m:marker>
       <m:htmlInformationWindow htmlText="cool information text"/>
   </m:marker>                    
</m:map>
2.
3.

What is the expected output? What do you see instead?
The information window should display by default.
Instead, the user must click the marker to see the information window. Note
that the information window is a child of the marker. The information
window displays automatically when the information window is not a child of
the marker, but under the <m:map> tag directly. However, the rendering is
different (and not standard if you look at Google Maps). 

What version of the product are you using? On what operating system?
Version gmaps4jsf-1.1.3-SNAPSHOT.jar
OS: Mac OSX 10.5
FireFox 3.5.8

Please provide any additional information below.
Perhaps an attribute for <m:htmlInformationWindow> that controls rendering
behavior. I thought perhaps that attribute rendered="true" would work, but
this doesn't seem to affect the default behavior of requiring user click.

Thanks very much!

Original issue reported on code.google.com by g...@asgteach.com on 18 Mar 2010 at 6:06

GoogleCodeExporter commented 8 years ago
It is now fixed on the latest 1.1.4 trunk and on the 1.1.3 branch:

You can now say:
<m:marker latitude="39" longitude="-101" jsVariable="marker2" draggable="true"
showInformationEvent="load">
    <m:htmlInformationWindow htmlText="Iam Marker"/>
</m:marker>

And it will work with you.

Here is the latest jar of 1.1.3-u2 after applying your feature:
http://gmaps4jsf.googlecode.com/files/gmaps4jsf-1.1.3-u2.jar

Finally, Thanks for requesting this feature. I appreciate if you can give us a 
link
to your GMaps4JSF application.

Original comment by Hazem.sa...@gmail.com on 18 Mar 2010 at 8:40

GoogleCodeExporter commented 8 years ago
It is now also uploaded on Maven2 so you can include this feature by:
        <dependency>
            <groupId>com.googlecode.gmaps4jsf</groupId>
            <artifactId>gmaps4jsf-core</artifactId>
            <version>1.1.3-u2</version>
        </dependency> 

Original comment by Hazem.sa...@gmail.com on 18 Mar 2010 at 9:29

GoogleCodeExporter commented 8 years ago
Hazem,

I tested it and it works great! Thank you very much for the quick fix.

Gail Anderson

Original comment by g...@asgteach.com on 19 Mar 2010 at 12:23

GoogleCodeExporter commented 8 years ago
ur welcome.

Original comment by Hazem.sa...@gmail.com on 19 Mar 2010 at 3:02