Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps api v3 standard cursors

I want to set cursor. Google documentaion quote:

setCursor(cursor:string)

And that's all. What string should I enter? Can't find list of available cursors.

like image 771
bfg9k Avatar asked May 17 '11 14:05

bfg9k


2 Answers

It looks like you're looking at a method for the google.maps.Marker class. I think instead that you want to change an option on the map itself. Here's an example:

map.setOptions({draggableCursor:'crosshair'});

You can set it to null to return it to the default. I'll make a guess and say that the value can be any CSS cursor property. You may even be able to specify a url.

like image 170
Eric Nguyen Avatar answered Sep 21 '22 23:09

Eric Nguyen


I suspect that the available values for cursors are the standard CSS cursors, which can be find here on the w3c website:

http://www.w3.org/TR/CSS21/ui.html#propdef-cursor

like image 20
Tomas Avatar answered Sep 24 '22 23:09

Tomas