Any updates on how to do this?ThanksJeff
To unsubscribe from this group and stop receiving emails from it, send an email to gmaps4jsf-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/gmaps4jsf-dev?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
Thanks for your quick reply. I don't think I asked the question correctly, thanks for your patience. I'm looking to have my map display 0 to N markers depending on table selection.<m:map id="eventmap" width="800px" height="600px" latitude="#{map.latitude}" longitude="#{map.longitude}"
jsVariable="eventmap" zoom="2"
partiallyTriggered="true"
actionListener="#{map.handleMapClick}">
<a4j:repeat id="markers" var="event" value="#{PackageController.events}">
<m:marker latitude="32.0" longitude="-117.0">
<m:htmlInformationWindow htmlText="#{event.parentId}" />
</m:marker>
</a4j:repeat>
</m:map>
The bean has 0 to N events to be drawn. A data table uses:
<a4j:ajax execute="@form" event="selectionchange" listener="#{PackageController.selectionListener}"
render=":eventtable,:markers"/>
To render the markers. My eventtable is updated by the markers and/or map are not. If I change the render tag like so:
<a4j:ajax execute="@form" event="selectionchange" listener="#{PackageController.selectionListener}"
render=":eventtable,:eventmap"/>
It works as desired, except for the unpleasing fact that the map rezooms to world view and not where the user zoomed to.
Any advice, and thank you for your time.
Jeff