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

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #47075 Wed Feb 03 18:26:13 MST 2016 art.zambrano ICE-10940 added callback registry to initialize info windows and events on markers once the markers have been initialized in the client
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/gmap/gmap.js
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapInfoWindowRenderer.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapEventRenderer.java

            People

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

              Dates

              • Created:
                Updated:
                Resolved: