Looking for a way to change the stroke color of a polygon when hovering over it. Struggling to locate proper documentation on how to access the setOptions method from events.
<GmapMap ref="google_map" :center="{ lat: 0, lng: -0 }">
<gmap-polygon
v-for="(polygon, i) in polygons"
:key="`polygon-${i}`"
ref="google_map_polygon"
:paths="polygon.vertices"
:options="polygonOptions"
@mouseover="polygonHover"
/>
</GmapMap>
Js
export default {
data: () => ({
polygons: [],
polygonOptions: {
strokeColor: 'transparent',
}
}),
...
methods: {
polygonHover (event) {
// Implement strokeColor change logic here.
}
}
}