4

I would like to know how to change default cursor when user move it on marker or map.circle. On google developers page I found how to change draggableCursor or draggingCursor but there is nothing about clickable cursor.

Default on marker, cursor change to "cursor: pointer", I would like to keep cursor as a "openhand" and keep marker "clickable".

Thank you

Klick
  • 1,418
  • 1
  • 23
  • 45

1 Answers1

1

The API explicitly provides a function to set the cursor:

marker.setCursor('default');

Edit: This does not provide the openhand cursor, which is actually an image. I couldn't find anything to use a custom image as a cursor for a marker.

But if you provide a random value to the setCursor function, the cursor reverts back to the default openhand image.

marker.setCursor('xyz');
jatinderjit
  • 1,359
  • 8
  • 21
  • Thank you. It works fine for the marker but It doesn't work for a map.circle object. Do you know how to set it for circle? – Klick Jan 13 '16 at 16:50
  • Nothing works! And there is no reference at all in the documentation. Nowhere it says that a random image can be used as cursor for a marker (though it's possible for the whole map). And probably `setCursor(xyz)` is a bug! – jatinderjit Jan 14 '16 at 17:07