Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clean way to set MapTypeControlOptions in runtime [duplicate]

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...

like image 495
Tomas Avatar asked Nov 26 '22 01:11

Tomas


1 Answers

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});
like image 179
Tomik Avatar answered Nov 27 '22 15:11

Tomik