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

          Arturo Zambrano created issue -
          Arturo Zambrano made changes -
          Field Original Value New Value
          Assignee Arturo Zambrano [ artzambrano ]
          Arturo Zambrano made changes -
          Fix Version/s EE-3.3.0.GA_P04 [ 12270 ]
          Arturo Zambrano made changes -
          Fix Version/s EE-4.1.0.GA [ 12171 ]
          Arturo Zambrano made changes -
          Link This issue depends on ICE-10854 [ ICE-10854 ]
          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)
          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
          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
          Arturo Zambrano made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s EE-4.1.0.BETA [ 13072 ]
          Ken Fyten made changes -
          Fix Version/s 4.2.BETA [ 13091 ]
          Fix Version/s 4.2 [ 12870 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: