Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 597
sandro Avatar asked Nov 12 '22 16:11

sandro


1 Answers

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
);
...
like image 116
Ergec Avatar answered Nov 15 '22 13:11

Ergec