Closed SoloSteve closed 4 years ago
Hi,
I not sure to understand...
To see this, I created a demo app: DEMO You can update the duration after mounting without bug...
For info: I just released the version 1.1.0
You have to pass the duration by the props attributs
<l-moving-marker
:lat-lng="l.latlng"
:duration="duration"
/>
Hi. I came across a problem where I could not dynamically change the duration of the moving marker.
It would throw an error
e[r] is not a function
.After some debugging I figured out that
e
is themapObject
andr
is the string"setDuration"
.To solve my issue I added the following code:
I am not familiar with Vue all that much so I don't know why it's happening.
Maybe you can take a look at it and fix the issue?