vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

How can I update markers on hover?

Open lafllamme opened this issue 2 years ago • 1 comments
trafficstars

I got this initial styles:

clusterStyles: [
                    {
                        textColor: '#000',
                        url: getBase64Icon('house'),
                        anchorText: [ 0, 0],
                        anchorIcon: [ 0, 0 ],
                        origin: [ 0, 0 ],
                        backgroundPosition: '-16.5 -16.5',

                    }
                ],

I apply them like this, whereas my 'url' is a base64 string of an icon

<gmap-cluster
                            :zoomOnClick="true"

                            :minimumClusterSize="2"
                            :gridSize="25"
                            :enableRetinaIcons="true"
                            :styles="clusterStyles"

                        >

How could I update the styles for the hovered Cluster? So I can add a @mouseover or something on the cluster component. I can't find anything regarding redrawing / repainting cluster in the documentation.

lafllamme avatar Jan 27 '23 17:01 lafllamme

I tried to use an event handler from with a @mouseover(event) to get the current cluster hovered -

that's what I receive: 2023-01-30 um 10 26 29

I can't find any way to identify the hovered cluster or to distinguish between all, since there is no unique identifier or so.

lafllamme avatar Jan 30 '23 09:01 lafllamme