Skip to content

Setting :draggable to false does not work on markers #790

@AIjbillinger

Description

@AIjbillinger

I have a bunch of markers in a map, however setting draggable to false does not seem to change anything. Idealy this would stop the functionality completely and I'm unable to find any other examples that do not have this issue.

As a reference this is the code part I'm using:

<GmapMap
      :center="{ lat: 40, lng: 9 }"
      :zoom="4"
      map-type-id="terrain"
      style="width: 100%; height: 31vh"
      :options="{
          zoomControl: false,
          mapTypeControl: false,
          scaleControl: false,
          streetViewControl: false,
          rotateControl: false,
          fullscreenControl: false,
          disableDefaultUI: false,
      }"
  >
 <GmapMarker
        :key="index"
        v-for="(m, index) in markers"
        :position="m"
        :draggable="false"
        :label="m.label"
    />
</GmapMap>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions