Skip to content

Dynamic markers #12

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

Open
Yamakaky opened this issue Dec 4, 2017 · 1 comment
Open

Dynamic markers #12

Yamakaky opened this issue Dec 4, 2017 · 1 comment

Comments

@Yamakaky
Copy link

Yamakaky commented Dec 4, 2017

I would like to be able to add a variable amount of markers over time. I currently use:

    <l-marker v-for="(params, user) in points"
              :key="user"
              :position="params.pos"
              :title="title"
              :opacity="opacity">
      <l-tooltip :content="user"></l-tooltip>
    </l-marker>

but no points are shown (points is initially empty). I can see they are present with the Vuex debug console. It seems vueleaflet doesn't handle dynamic marker creation in a map?

@chiragparekh
Copy link

Any solution for this?

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

No branches or pull requests

3 participants