Skip to content

Cursors option does not allow for browser specific options #111

Open
@davesag

Description

@davesag

CSS3 allows a range of new cursor styles, and in particular I want to show the standard 'hand' cursor when the user is just moving the mouse around, and switch to the 'grabbing hand' cursor when the map is being panned.

I tried adding the following code:

cursors: {
  static: "move",
  pan: "-webkit-grabbing, -moz-grabbing"
},

but that just gave me a default 'arrow head' cursor.

Adding this instead

cursors: {
  static: "move",
  pan: "-webkit-grabbing"
},

gives me the grabbing hand in Safari and Chrome (which is better than nothing I guess) but it shows that cursor all the time, not just when the map is being panned around. I expected the 'static' cursor to show when the map is not moving but I suppose that will only show when the map is set to 'static' mode.

Please enhance the cursors options to allow for more, and cross browser, cursor options.

Also I'd like the cursor to change when the user mouses over one of the appended map pins. I've tried adding cursor: "pointer"; to the various bits of CSS that get triggered but it seems to be overridden by the Geo code. Any suggestions for this?

Cheers

Dave

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions