ICEfaces
  1. ICEfaces
  2. ICE-10347

ace:gMap - Add support for multiple subcomponents

    Details

    • 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)
      1. gMapMultipleLayers.xhtml
        2 kB
        Arturo Zambrano
      2. gMapMultipleServices.xhtml
        3 kB
        Arturo Zambrano

        Activity

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: