Skip to content

Dynamic markers #12

Open
Open
@Yamakaky

Description

@Yamakaky

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions