Q about click and dragging with google maps

13 views
Skip to first unread message

eyeyen

unread,
Aug 27, 2010, 5:38:09 PM8/27/10
to FuncUnit
Hi, I am writing some tests for my application which has a Google map.

How would I go about issuing a click-and-drag action? I have utilized
most of the actions except for some sort of click and drag (my guess
is it has something to do with move/drag?)

I was looking at the API and most of them are of the general form:

S(selector).move()

But I'm not too sure how to implement that given a Google map, because
a Google map has image tiles and I don't have control over how to use
a selector on a given map tile. I would usually use an id/class name
then traverse the DOM using jQuery-like syntax, however, this seems
like a unique case.

Any ideas are appreciated, thanks!

Justin Meyer

unread,
Aug 27, 2010, 5:46:55 PM8/27/10
to func...@googlegroups.com
You probably do have the ability to select the image.  But you can control where to start and move to:

 S('#foo').drag({
   from: "0x0",
   to: "100x100",
   duration: 2000
 }) 


Justin Meyer

Jupiter Consulting
\Development\Training\Support
847-924-6039
justin...@gmail.com
Reply all
Reply to author
Forward
0 new messages