Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

feat: add animation field to markers#852

Closed
xdimension wants to merge 1 commit into
sebholstein:masterfrom
xdimension:feat-animation
Closed

feat: add animation field to markers#852
xdimension wants to merge 1 commit into
sebholstein:masterfrom
xdimension:feat-animation

Conversation

@xdimension

Copy link
Copy Markdown
Contributor

Feature to set animation for map markers

issue: Add animation field to markers #580

@GitCop

GitCop commented Jan 13, 2017

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: 359af58
  • Commits must be in the following format: %{type}(%{scope}): %{description}

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

@sebholstein sebholstein left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Added some comments

/**
* Which animation to play when marker is added to a map.
* This can be "bounce" or "drop"
*/

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be animation: "BOUNCE" | "DROP" | null;

setOpacity(opacity: number): void;
setVisible(visible: boolean): void;
setZIndex(zIndex: number): void;
setAnimation(animation: any): void;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this way, users can also provide a real google.maps.Animation


updateAnimation(marker: SebmGoogleMapMarker): Promise<void> {
return this._markers.get(marker).then((m: Marker) =>
m.setAnimation(google.maps.Animation[marker.animation])

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can also be null/undefined:

if (typeof marker.animation === 'string) {
  m.setAnimation(google.maps.Animation[marker.animation]);
} else {
  m.setAnimation(marker.animation);
}

@@ -73,6 +81,10 @@ export class MarkerManager {
title: marker.title

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please handle the animation here, please handle also null/undefined cases here as above.

});
this._markers.set(marker, markerPromise);

markerPromise.then((m: Marker) =>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment above

xdimension pushed a commit to xdimension/angular2-google-maps that referenced this pull request Jan 22, 2017
Feature to set animation for map markers
Updated according to comments in sebholstein#852

issue: Add animation field to markers sebholstein#580
@GitCop

GitCop commented Jan 22, 2017

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: 359af58

  • Commits must be in the following format: %{type}(%{scope}): %{description}

  • Commit: f4f197c

  • Commits must be in the following format: %{type}(%{scope}): %{description}

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

@xdimension

Copy link
Copy Markdown
Contributor Author

Sorry for long update, please let me know if there's anything else should be fixed. Thank you.

@rhutchison

Copy link
Copy Markdown

@xdimension can you please reword the commit messages and squash so this can get merged. Looking forward to it -- thanks

xdimension pushed a commit to xdimension/angular2-google-maps that referenced this pull request Jan 29, 2017
Feature to set animation for map markers

issue: Add animation field to markers sebholstein#580

feat: add animation field to markers

Feature to set animation for map markers
Updated according to comments in sebholstein#852

issue: Add animation field to markers sebholstein#580
@GitCop

GitCop commented Jan 29, 2017

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: 640e535
  • Commits must be in the following format: %{type}(%{scope}): %{description}

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

@xdimension xdimension force-pushed the feat-animation branch 2 times, most recently from 45a550d to b338c31 Compare January 29, 2017 06:39
@lazarljubenovic lazarljubenovic mentioned this pull request Feb 4, 2017
@rhutchison

Copy link
Copy Markdown

@xdimension thanks for fixing the PR - can you rebase?

@SebastianM can you please get this merged in once he fixes the PR?

Thanks guys

@xdimension

xdimension commented Feb 11, 2017

Copy link
Copy Markdown
Contributor Author

@rhutchison My latest update is as below, I have done the squash. Not sure what I can do next, just let me know if I can help further. Thanks.

@rhutchison

Copy link
Copy Markdown

@xdimension it needs to be rebased on top of the latest changes - merge conflicts.

@sebholstein

Copy link
Copy Markdown
Owner

Can you fix the unit tests? Then I can merge it.

Feature to set animation for map markers

issue: Add animation field to markers sebholstein#580
@xdimension

Copy link
Copy Markdown
Contributor Author

@SebastianM Updated. I'm not really familiar with testing yet, so please review. Thanks.

@rbarcelos

Copy link
Copy Markdown

ETA of when will this be available?

@seanfar

seanfar commented Jun 22, 2017

Copy link
Copy Markdown

@xdimension thanks for your work getting this updated.
@SebastianM any possibility of getting this merged in before next update? Am I mistaken or is it not waiting on anything else? Looking forward to having this feature!

@mtszpater

Copy link
Copy Markdown

What's the status of this?

@xavier-experion

Copy link
Copy Markdown

Any update on this PR ?

@Freshchris01

Copy link
Copy Markdown

@SebastianM @xdimension Will this feature be merged soon?

@orijel

orijel commented Dec 18, 2017

Copy link
Copy Markdown

any updates on this?

@wtubog

wtubog commented Jan 21, 2018

Copy link
Copy Markdown

Hi, is this feature supported now?

@aepgit

aepgit commented Feb 8, 2018

Copy link
Copy Markdown

I'm assuming this will be in the next release? Any info on the schedule?

@miyelo

miyelo commented Feb 23, 2018

Copy link
Copy Markdown

Please please, or just let us access the native google map to add the marker following the google documentation :3
Awesome job

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.