Geocoding with ui:repeat?

31 views
Skip to first unread message

Rodrigo Sieja Bertin

unread,
Aug 11, 2014, 9:33:55 PM8/11/14
to gmaps4...@googlegroups.com
Straight to the point, I have the following code:

<m:map id="mapaGoogle" width="600px" height="350px" latitude="22" longitude="10" jsVariable="map1" zoom="1" autoReshape="true" partiallyTriggered="true">
   
<ui:repeat var="address" value="#{dashboardMB.addresses}">
       
<m:marker address="#{address.name}">
           
<m:htmlInformationWindow htmlText="&lt;b&gt;&lt;a href='#{address.estabelecimentoSite}' target='_blank'&gt;#{address.estabelecimentoNome}&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;(#{address.identificador})" />
       
</m:marker>
   
</ui:repeat>
</m:map>

How could I use geocoding or simply change the position and zoom of the map in the specified location?

Hazem Saleh

unread,
Aug 12, 2014, 8:38:06 AM8/12/14
to gmaps4jsf-dev
Just use the map component address attribute.


--
You received this message because you are subscribed to the Google Groups "gmaps4jsf-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmaps4jsf-de...@googlegroups.com.
To post to this group, send email to gmaps4...@googlegroups.com.
Visit this group at http://groups.google.com/group/gmaps4jsf-dev.
For more options, visit https://groups.google.com/d/optout.



--
Hazem Saleh

Author of Pro JSF and HTML5 book:
http://www.amazon.com/Pro-JSF-HTML5-Building-Components/dp/1430250100/

Author of JavaScript Unit Testing book:
http://www.amazon.com/dp/1782160620/

Co-author of (The Definitive Guide to Apache MyFaces and Facelets) book:
http://www.amazon.com/-/e/B002M052KY

DeveloperWorks Contributing Author
https://www.ibm.com/developerworks/mydeveloperworks/blogs/hazem/entry/ibm_developerworks_contributing_author?lang=en_us

An Apache committer, IBMer, and a technical speaker

Twitter: http://www.twitter.com/hazems
Reply all
Reply to author
Forward
0 new messages