bfg9k
bfg9k

Reputation: 141

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.

Upvotes: 14

Views: 20118

Answers (3)

Tomas
Tomas

Reputation: 59435

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

Upvotes: 11

Eric Nguyen
Eric Nguyen

Reputation: 40582

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.

Upvotes: 19

Skadlig
Skadlig

Reputation: 1579

Not sure if you can access Googles own cursors, when I use it I only enter a path to an icon on my own server ie "\img\icon.png".

Upvotes: -1

Related Questions