Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.3
-
Fix Version/s: EE-4.0.0.GA, EE-3.3.0.GA_P03, 4.1
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7.0.55
-
Assignee Priority:P1
-
Workaround Exists:Yes
-
Workaround Description:Use c:forEach if you can. c:forEach will not work if the code populating the ace:gMapMarker components is in an f:event tag in the page. This is because all the f:events execute after c:forEach.
Description
Attempting to dynamically populate an ace:gMap component with ace:gMapMarker component does not work with ui:repeat:
<ace:gMap style="height:500px; width:675px;">
<ui:repeat value="#{realmBean.userLocations}" var="location">
<ace:gMapMarker longitude="#{location.location.geometry.coordinates[0]}" latitude="#{location.location.geometry.coordinates[1]}" options="title:'#{location.username}'"/>
</ui:repeat>
</ace:gMap>
The result is an error in the browser (Firefox):
TypeError: a is null
...b[r]+b.D);Sa(c,b[C]+b.I)}function Um(a){return new W(a[yb],a[Cc])};function Vm(a...
{main,places}.js (line 44, col 1838)
<ace:gMap style="height:500px; width:675px;">
<ui:repeat value="#{realmBean.userLocations}" var="location">
<ace:gMapMarker longitude="#{location.location.geometry.coordinates[0]}" latitude="#{location.location.geometry.coordinates[1]}" options="title:'#{location.username}'"/>
</ui:repeat>
</ace:gMap>
The result is an error in the browser (Firefox):
TypeError: a is null
...b[r]+b.D);Sa(c,b[C]+b.I)}function Um(a){return new W(a[yb],a[Cc])};function Vm(a...
{main,places}.js (line 44, col 1838)
Attaching gMapMultipleServices.xhtml.
A similar test was made to test multiple services. It was found that Google Maps does support displaying multiple services on the same map, as shown in the attached test page, but this is currently not supported on our ace:gMap.
ICE-10459was created to fix this specific issue.