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

Updating marker position #45

Closed
MichalKrakow opened this issue May 21, 2017 · 5 comments
Closed

Updating marker position #45

MichalKrakow opened this issue May 21, 2017 · 5 comments
Labels

Comments

@MichalKrakow
Copy link

Not sure if i understood marker component code but it seems there's no way to call setLatLng() on marker and just binding :lat-lng="position" will not trigger map refresh when the value changes.

This should be an option for some live maps applications.
Regards.

@MichalKrakow
Copy link
Author

Ugly but works:

this.$refs.myLoc.mapObject.setLatLng(this.position);

@ais-one
Copy link

ais-one commented May 24, 2017

Thanks for the tip,

For my case the lat-lon will come from some piece of data in the Vuex store, after mutating the data, need to also reflect the change on the marker (tracksymbol in my case)...

@KoRiGaN KoRiGaN added the bug label May 24, 2017
@KoRiGaN
Copy link
Collaborator

KoRiGaN commented May 24, 2017

@MichalKrakow Yes that's ugly...

I will look into it as it is suppose to work.

@procreatorspl
Copy link

This happens only for small changes that does not require map to redraw. If map redraws the marker gets updated.

@KoRiGaN
Copy link
Collaborator

KoRiGaN commented May 24, 2017

Fixed In v0.0.50

Mickaël

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

No branches or pull requests

4 participants