vueleaflet icon indicating copy to clipboard operation
vueleaflet copied to clipboard

Dynamic markers

Open Yamakaky opened this issue 8 years ago • 1 comments

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?

Yamakaky avatar Dec 04 '17 20:12 Yamakaky

Any solution for this?

chiragparekh avatar Oct 18 '18 13:10 chiragparekh