The image above demonstrates the problem. A marker with address attribute pointing to Cotia/SP is being displayed in Curitiba/PR.
When I select a state in a combobox the attribute searchType
is set to "State"
and the cities combobox is populated.
XHTML:
<m:map id="mapaGoogle"
width="900px"
height="450px"
latitude="22"
longitude="10"
jsVariable="map1"
zoom="1"
autoReshape="true"
partiallyTriggered="true">
<c:forEach var="a" items="#{dashboardMB.loadedAddresses}">
<m:marker address="#{a}">
<m:htmlInformationWindow htmlText="#{a}" />
</m:marker>
</c:forEach>
</m:map>
Method loadedAddresses
:
public List<String> getEnderecosCarregadosString() {
this.loadedAddresses = null;
if (this.searchType != null && this.searchType.equals("State")) {
this.loadedAddresses = this.enterpriseBean
.getAddressByUserIdAndStateIdNativeQuery(
this.getUserId(), this.state.getId()
);
}
return loadedAddresses;
}
When I do the first search when opening the page it's OK, but the problem happens when I do another search afterwards. Also, I can get the following result (if I search for São Paulo first, then Paraná):
I guess some object is not being cleaned, though I set loadedAddresses
to null.
--
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.
Dear All,
What actually happened to the gmaps4JSF project. It seems to have terminated around 2013/14. All links to the demos are broken.
Is there any other continuation or has it been included in any other framework?
Kind regards
Christoph Germeier
Thanks for your prompt reply.
So I hope for the best. I really like to use it.
Kind regards
Christoph Germeier