Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animateCamera on maps does not have callback in ionic native but it does in the original plugin #511

Closed
morcth opened this issue Aug 31, 2016 · 7 comments

Comments

@morcth
Copy link

morcth commented Aug 31, 2016

Hello,

I am trying to show a marker after the map has finished animating. I read in the cordova plugin today that animate and move camera both have callbacks as does addMarker.

I tried using a promise with animateCamera like I successfully did with addMarker and it did not work.

Looking at the ionic native code for animate camera, it does not have the callback function associated with it like addMarker does.

I am new to angular 2... am I looking at it correctly?

I guess I can use a timeout function to place the marker but it seems like animateCamera lost a piece of it coming to ionic native?

Thanks for any info

@guillenotfound
Copy link
Contributor

@morcth
Copy link
Author

morcth commented Sep 1, 2016

Thanks for looking into it!

I realize now I should have pasted that link in there to save you some time.... sorry about that.

I was able to create the effect I want with a 5 second timeout function but it feels a little sloppy to me.

@ihadeed ihadeed closed this as completed in d03d70f Sep 7, 2016
@ihadeed
Copy link
Collaborator

ihadeed commented Sep 7, 2016

thanks @morcth @ZiFFeL1992

@morcth
Copy link
Author

morcth commented Sep 7, 2016

@ihadeed Thanks!

Noob question: How do I update my project to use the new file? I tried npm update but it stayed at 1.3.1.

Do I make the changes to the files in node-modules myself or is there some command I can run?

Thanks

@ihadeed
Copy link
Collaborator

ihadeed commented Sep 7, 2016

I usually use npm i --save ionic-native@latest and it does the job. @morcth

@morcth
Copy link
Author

morcth commented Sep 7, 2016

That did it! Thanks again for the work you are doing.

@Binitronics
Copy link

Is this issue resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants