Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Mouseover cursor change
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peej  
View profile  
 More options Nov 7, 5:30 am
From: Peej <drpeterhar...@gmail.com>
Date: Fri, 6 Nov 2009 10:30:02 -0800 (PST)
Local: Sat, Nov 7 2009 5:30 am
Subject: Mouseover cursor change
I am new to Google maps API and have managed to work out most of what
I want but what should be a simple problem isn't working for me and I
would appreciate some help to tell me where I am going wrong.

I want to make the cursor change to a pointing finger when over a
polyline and then change back when moved away.  I thought this would
be simple and used this code:

GEvent.addListener(polyline, "mouseover", function(){
        map.getDragObject().setDraggableCursor("pointer");

});

GEvent.addListener(polyline, "mouseout", function()
{       map.getDragObject().setDraggableCursor("url(http://
maps.google.com/intl/en_us/mapfiles/openhand.cur),default");

});

However what happens is that the first time I move it over the line
the cursor changes as expected but has to be moved a long way away
from the line before it will change back.  Any subsequent cursor moves
will change the cursor into a pointer again long before it reaches the
line

Here is a link to a demonstration map that illustrates this
www.gp-it.co.uk/map/test.htm

I have tried it with IE8 and Chrome.

Peter Harris


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anurag  
View profile  
 More options Nov 7, 10:18 am
From: Anurag <anurag.choura...@gmail.com>
Date: Fri, 6 Nov 2009 15:18:11 -0800 (PST)
Local: Sat, Nov 7 2009 10:18 am
Subject: Re: Mouseover cursor change
Hi There,

Could you please try using the mouseOutTolerance property
(GPolylineOptions)

http://code.google.com/apis/maps/documentation/reference.html#GPolyli...

Regards,
Anurag
www.H1N1SwineFluIndia.org

On Nov 6, 11:30 pm, Peej <drpeterhar...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peej  
View profile  
 More options Nov 7, 8:32 pm
From: Peej <drpeterhar...@gmail.com>
Date: Sat, 7 Nov 2009 01:32:13 -0800 (PST)
Local: Sat, Nov 7 2009 8:32 pm
Subject: Re: Mouseover cursor change
Thanks for the suggestion Anurag but I have actually managed to sort
it out in the time between submitting my (first) post for moderation
and it getting published here.

What I did was change the mouseover event to this:

GEvent.addListener(polyline, "mouseover", function(){
this.cursor='hand';

});

Doesn't seem to need a "mouseout" event and it now works perfectly.  I
said it was simple didn't I?

Here is a link to the fixed version:  http://www.gp-it.co.uk/map/test_working.htm

Does anyone have a list of the other cursor types?

Peter

On 6 Nov, 23:18, Anurag <anurag.choura...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Leach  
View profile  
 More options Nov 7, 8:50 pm
From: Andrew Leach <andrew.leac...@googlemail.com>
Date: Sat, 7 Nov 2009 01:50:27 -0800 (PST)
Local: Sat, Nov 7 2009 8:50 pm
Subject: Re: Mouseover cursor change
On Nov 7, 9:32 am, Peej <drpeterhar...@gmail.com> wrote:

> Does anyone have a list of the other cursor types?

Don't forget Google don't just do maps...
http://www.google.co.uk/search?q=css+cursor+types

Andrew


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google