ICEfaces
  1. ICEfaces
  2. ICE-10940

ace:gMapMarker, can't use info windows and events when using address attribute

    Details

      Description

      After the improvement added under ICE-10854, the customer reported that it's not possible to use ace:gMapInfoWindow in conjunction with ace:gMapMarker, when placing the marker via the new 'address' attribute. This is the case because the marker is not immediately initialized on the client; it's initialized only after receiving the results of a successful geocoding request, based on the specified address. So, when the info window initializes, it tries to find the corresponding marker instance, but this instance doesn't exist yet at that time.

      The same situation occurs with ace:gMapEvent.

      This can be solved by creating a registry of callback functions that the marker will consult once it's initialized after the geocoding request. If the marker finds callbacks for itself, it will execute them. These callbacks will safely initialize the info window and/or the event instances on the marker, now that it exists.

        Issue Links

          Activity

          Hide
          Arturo Zambrano added a comment -

          r47075: added callback registry to initialize info windows and events on markers once the markers have been initialized in the client (4.0 trunk)

          Show
          Arturo Zambrano added a comment - r47075: added callback registry to initialize info windows and events on markers once the markers have been initialized in the client (4.0 trunk)
          Hide
          Arturo Zambrano added a comment -

          r47091: committed fix to the 3.3 EE maintenance branch

          Show
          Arturo Zambrano added a comment - r47091: committed fix to the 3.3 EE maintenance branch

            People

            • Assignee:
              Arturo Zambrano
              Reporter:
              Arturo Zambrano
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: