googlemaps-samples / googlemaps-samples/maps-sdk-for-ios-samples

Marker Disappear Animation

Open
#156 1 comment 0 reactions 1 assignee View on GitHub

@amuramoto is already working on this.

Since Sep 9, 2022.

stale triage me type: feature request
Dominant language
Objective-C
Stars
353
Forks
201
PR merge metrics
No merged PRs in 30d

Description

Thanks for stopping by to let us know something could be better!


PLEASE READ

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.

Check for answers on StackOverflow with the google-maps tag.


Is your feature request related to a problem? Please describe.

Lack of ability to animate out a marker

Describe the solution you'd like

Offer a .disappearAnimation allowing for the animated removal of a marker

Describe alternatives you've considered

Manually animating layer via CATransaction, CAKeyframeAnimation both of which don't appear to have an effect?

Additional context

Is there a way to animate the removal of a GMSMarker?

I've been reading through add/remove documentation and came across the appearAnimation property which provides what I"m looking for for the addition of a marker.

Use Case:
In our use case, we tend to add new annotations as well remove annotations from screen to maintain performance and provide focus on new content. The problem we're running into is when we remove annotations, its not animated. Placed alongside the animated introduction of new markers, the end user experience is weird.

Is there a way to offer: .disappearAnimation?

Or suggest a way to perform our own animations? So far I had attempting interacting with the layer/opacity direction with a UIView.animate(duration:animation:completion), as well as a CATransaction + CAKeyframeAnimation "transform.scale", both being unsuccessful at animating out the markers.

I would be very grateful for any guidance for how to approach.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.