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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: