ICEfaces
  1. ICEfaces
  2. ICE-11371

add ability to update location of ace:gmapMarker when dragged to new location

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-4.2.0.GA
    • Fix Version/s: 4.3, EE-3.3.0.GA_P06
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace gmap

      Description

      Currently when you drag an ace:gmapMarker on the client, there is no ability to update the new location is has been dragged to on the server. The request is to be able to have this capability in the ace:gmapMarker (submit new location from client and decode with component on server to access in backing bean).

        Activity

        Hide
        Arturo Zambrano added a comment - - edited

        r52047: ace:gMapMarker, added dragDropListener to be able to know the new lat,lng values when a marker is dragged and dropped somewhere else; added MarkerDragDropEvent

        In order to preserve backwards-compatibility and the old behaviour, the new LatLng values aren't automatically updated in the component. Instead, the new LatLng values are contained in the MarkerDragDropEvent object. It's up to the app developer to update these values in the component itself or not. For example, there are cases where the original marker locations are wanted whenever the page is reloaded.

        Show
        Arturo Zambrano added a comment - - edited r52047: ace:gMapMarker, added dragDropListener to be able to know the new lat,lng values when a marker is dragged and dropped somewhere else; added MarkerDragDropEvent In order to preserve backwards-compatibility and the old behaviour, the new LatLng values aren't automatically updated in the component. Instead, the new LatLng values are contained in the MarkerDragDropEvent object. It's up to the app developer to update these values in the component itself or not. For example, there are cases where the original marker locations are wanted whenever the page is reloaded.
        Hide
        Arturo Zambrano added a comment -

        r52054: modified fix to return old values as well in MarkerDragDropEvent and to automatically update the component's latitude and longitude values

        Show
        Arturo Zambrano added a comment - r52054: modified fix to return old values as well in MarkerDragDropEvent and to automatically update the component's latitude and longitude values
        Hide
        Arturo Zambrano added a comment -

        r52056: backported new feature to the 3.3 EE maintenance branch

        Show
        Arturo Zambrano added a comment - r52056: backported new feature to the 3.3 EE maintenance branch
        Hide
        Arturo Zambrano added a comment -

        r52065, r52066: modified behaviour to always update the component's latitude and longitude values when dragged; fixed js error that appeared after dragging marker (4.0 trunk and 3.3 EE maintenance branch)

        Show
        Arturo Zambrano added a comment - r52065, r52066: modified behaviour to always update the component's latitude and longitude values when dragged; fixed js error that appeared after dragging marker (4.0 trunk and 3.3 EE maintenance branch)

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Judy Guglielmin
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: