Tomas
Tomas

Reputation: 59435

Change cursor in google maps v3 in runtime

The draggableCursor option can be set in google.maps.Map object upon creation. Is there any way how one could set this option in runtime? Or is there any other clean way how to change the cursor in runtime? I've searched through the documentation but there's nothing like setDraggableCursor method...

Upvotes: 3

Views: 3632

Answers (1)

Tomik
Tomik

Reputation: 23977

The option can be set at runtime. You have to set the map options with map.setOptions() function. Set only the desired property in the options object:

map.setOptions({draggableCursor: myNewDraggableCursor});

Upvotes: 8

Related Questions