Skip to content
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

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

Open
AIjbillinger opened this issue May 11, 2022 · 1 comment
Open

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

AIjbillinger opened this issue May 11, 2022 · 1 comment

Comments

@AIjbillinger
Copy link

AIjbillinger commented May 11, 2022

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>
@linhntbhsoft
Copy link

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

No branches or pull requests

2 participants