sandro
sandro

Reputation: 51

mouse cursor for google maps overlays

I'm creating a game based on google maps api v3 where the player has to guess some areas, by clicking on the right area on the map. But when I'm creating an invisible overlay the mouse cursor still changes from the open hand to the pointing hand, but it shouldn't change. Is there a possibility to set the mouse cursor for overlays? THX

Upvotes: 5

Views: 765

Answers (1)

Ergec
Ergec

Reputation: 11824

This worked for me

...
var imageBounds = new google.maps.LatLngBounds(
    new google.maps.LatLng(35,25),
    new google.maps.LatLng(42,45)
);
var overlayOpts = {
    clickable: false
}
historicalOverlay2 = new google.maps.GroundOverlay(
    'image.png',
    imageBounds,
    overlayOpts
);
...

Upvotes: 1

Related Questions