Open AIjbillinger opened 2 years ago
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>
@AIjbillinger We can use gestureHandling instead draggable https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions.draggable
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: