I've put in code to (conditionally) allow mouse events originating in
the InfoBox to be passed on to the map -- this means that, for most
browsers, the map will pan when you drag even if the drag starts
inside the InfoBox.
Unfortunately, this technique does not work when using Safari on the
iPhone. Instead, when you drag, the whole browser window moves -- this
is the usual behaviour when you try to drag an iPhone browser window.
Does anyone know how to override this iPhone behavior so that the map
will pan instead? Map applications built with Apple's Map Kit do work
the way I want but, of course, they're not created using the
JavaScript API.
Gary
Do you cancel the default behavior on the drag event in the floatPane?
eg. using the following function:
function cancelDefault(e) {
e.returnValue = false;
e.preventDefault && e.preventDefault();
}
Cheers
Ben
> --
> You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
Gary
On Jan 21, 3:11 pm, Ben Appleton <apple...@google.com> wrote:
> Hi Gary,
>
> Do you cancel the default behavior on the drag event in the floatPane?
> eg. using the following function:
>
> function cancelDefault(e) {
> e.returnValue = false;
> e.preventDefault && e.preventDefault();
>
> }
>
> Cheers
> Ben
>
>
>
> On Fri, Jan 22, 2010 at 9:51 AM, Gary Little <g...@luxcentral.com> wrote:
>
> > I've got a problem relating to the iPhone I'm trying to solve. I've
> > written a class called InfoBox ( see
> >http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobo...
Gary
On Jan 21, 9:51 pm, Ben Appleton <apple...@google.com> wrote:
> Oh I'm sorry: we suppress drag events in the floatPane, as this is where we
> > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > google-map...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com>
Gary