i'm using the API of the GOOGLE MAPS for JFS (gmaps4jsf) along with
the RICHFACES. I've been trying, unsuccessfully do the following
action: when i move the marker on the map, i wanna capture the values
of latitude and longitude and activate a function from my managed beam
through the reaquisition AJAX in order to update these values in the
database.
up to know, i can only activate this function through a4j:jsFunction,
nevertheless i don't know how to get the latitude and longitude of the
marker and pass as parameter of the function or attribute to any
property of my managed beam. does anybody know how to sort it out?
the code has been placed as folows below

<m:map id="gmap" width="680px" height="500px" latitude="#
{usr.usuario.latitude}" longitude="#{usr.usuario.longitude}" zoom="12"
type="G_NORMAL_MAP">
                            <m:mapControl name="GLargeMapControl"
position="G_ANCHOR_BOTTOM_RIGHT"/>
                            <m:mapControl name="GMapTypeControl"
position="G_ANCHOR_TOP_RIGHT"/>

                            <m:marker id="myMarker" latitude="#
{usr.usuario.latitude}" longitude="#{usr.usuario.longitude}"
draggable="true" jsVariable="mymark">
                                <m:eventListener eventName="dragend"
jsFunction="updateLocal"/>
                            </m:marker>
                            <m:htmlInformationWindow htmlText="<img
width='50' height='50' src='http://localhost:8080/AddressBookMobileWeb/
images/nophoto.jpg'></img>&nbsp;&nbsp;<font size='+1'>#
{usr.usuario.nome}</font>"/>
                        </m:map>


<a4j:jsFunction name="updateLocal" action="#{usr.updateLocalization}">
                            <a4j:actionparam name="param" assignTo="#
{usr.point}" />
                        </a4j:jsFunction>

faithfully your s

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to