Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

AddCircle method for map, support modify radius of circle #4153

Closed

Description

@Trinea

Like below, we need add circle on the map, so we can change the radius constantly to make a animation.

Activity

  1. Trinea commented on Mar 1, 2016

    @Trinea
    Author
  2. jjhurlock commented on Mar 4, 2016

    @jjhurlock

    @Trinea We have a UserLocationView, that implements a similar effect here

    Is this helpful to start implementing this feature?

  3. tobrun commented on Mar 6, 2016

    @tobrun
    Member

    @jjhurlock while the SDK has a similar effect we are currently not exposing this as an API. This is something I have been thinking about in #3276. This will allow end developers to draw Android Views on a certain LatLng and give them the ability to do whatever they like with it.

    Note that exposing this as an API has a history to it.. we prefer people using GL based markers because they are more performant and allow scaling. On the other hand these markers are very limited in what we can do with hem, for example having marker animation.

    Update: just found this ticket with the history behind this: #3116

  4. added this to the android-v4.1.0 milestone on Mar 6, 2016
  5. added
    Android
    on Mar 6, 2016
  6. Trinea commented on Mar 7, 2016

    @Trinea
    Author

    ok, this is not urgent for us.

    #4090
    #3985
    #4159

    These are urgent for us, please process first, Thank you

  7. modified the milestone: android-v4.1.0 on Mar 18, 2016
  8. zugaldia commented on Jun 10, 2016

    @zugaldia
    Member

    Just noting that the request here, if I understand correctly, is to (1) receive an event callback while hovering over a previously added marker, in order to trigger some custom behavior (in this case, (2) an animation).

    @tobrun is this something unlocked for view markers now that #3276 has landed?

  9. tobrun commented on Jun 10, 2016

    @tobrun
    Member

    Yes,

    A user should be able to track the camera position with an OnCameraChangeListener and check if the LatLng from the camera matches the location of a Marker. If it does, the user should get a reference to the related view with mapboxMap.getViewMarkerManager().getView(markerView) and should be able to execute an animation.

  10. added 2 commits that reference this issue on Jun 14, 2016
  11. tobrun commented on Jun 14, 2016

    @tobrun
    Member

    I created some sample code on achieving this with ViewMarkers in #5346.
    @bleege is running point on integrating this into the location picker example #5282.

  12. zugaldia commented on Jun 14, 2016

    @zugaldia
    Member

    @tobrun Great, this looks fantastic.

    As discussed in #5346 (comment), @bleege is picking this code up together with the MyLocationView usecase to create a new sample activity that demoes this functionality.

    @Trinea good news, this will be included in the next Android 4.1 release.

  13. added this to the android-v4.1.0 milestone on Jun 14, 2016
  14. zugaldia commented on Jun 14, 2016

    @zugaldia
    Member
  15. zugaldia commented on Jun 17, 2016

    @zugaldia
    Member

    Done in #5346.

  16. zugaldia commented on Jun 17, 2016

    @zugaldia
    Member

    @Trinea good news, this is also completed, and it will be available in the next release of the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidfeature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions