CloudDev
CloudDev

Reputation: 331

Drag map by clicking on symbol

There's a feature of google maps called SYMBOLS that allows you to draw different symbols on GoogleMaps. One example on google website that is located here:

https://developers.google.com/maps/documentation/javascript/examples/marker-symbol-custom

This draws a yellow star on a map, but I can't click the star and drag a map. I would like to be able to click the yellow star (so that a closed hand icon appears) and drag the map. I can do this while not hovering over the yellow star...how can I do this while hovering over the yellow star?

Thanks

Upvotes: 0

Views: 47

Answers (1)

geocodezip
geocodezip

Reputation: 161404

Set clickable:false on the marker if you don't want it to accept mouse events.

Upvotes: 1

Related Questions