[OpenLayers-Users] pinch zoom on Droid
christopher.schmidt at nokia.com
christopher.schmidt at nokia.com
Mon Mar 7 09:49:05 EST 2011
On Mar 7, 2011, at 8:49 AM, ext Dominik Mikiewicz wrote:
> Not sure if this has something to do with the android version or hosting device but it does work on some of the devices.
> I have a Galaxy S with an Android 2.1 and both google maps and the new OpenLayers examples work excellent. On the other hand HTC Desire Hd with android 2.2 enlarges the whole page no matter what (this happens with gmaps too).
Some Samsung phones apparently had multiple-touch event support in the
browser (as a Samsung specific change) in 2.1. However, some users (Daniel
Morrisette) report that this functionality went away on an upgrade to
2.2. (This is in both GMaps and OL.) So, be careful about upgrading!
This change was not in core android: The Android ticket for this functionality
is:
http://code.google.com/p/android/issues/detail?id=11909
(As usual, this bug has no feedback from android devs, and presumably at some
point in the future it will be closed along with 300 other tickets and a
close message of 'fixed' with no details :))
Note that some earlier Android devices don't even have hardware support for
this functionality: The G1 (/HTC Dream) had no multitouch at all, and the
N1 (Google's early flagship) had 'weird' touch support where they were not
actually distinct touches, so there was weird behavior... but I don't think
either of these browsers supported multitouch at the JS level anyway.
> The mentioned mobile example does indicate there is only one touch event happening no matter how many fingers are touching the screen. Not sure how it corresponds to the event console available in the sencha touch kitchen sink demo – here the console reports pinch when two fingers touch the screen.
Thanks for the pointer! I'll look into this to extend the mobile demo. Strangly,
the mobile demo uses the exact same mechanism that I understand the pinch-zoom
to use internally, so I don't know why it's not able to report two fingers when
pinch-zooming actually works! (The mobile example is *very* simple, so if anyone
is interested in debugging this, comparing vs. the sencha example would be useful.)
-- Chris
> Dominik
>
> From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Richard Greenwood
> Sent: Sunday, March 06, 2011 11:06 PM
> To: Cédric MOULLET
> Cc: users
> Subject: Re: [OpenLayers-Users] pinch zoom on Droid
>
> Thanks, Chris's explanation answered my question exactly.
>
> On Mar 6, 2011 8:26 AM, "Cédric MOULLET" <cedric.moullet at gmail.com> wrote:
> > Hello,
> > Unfortunately, Android doesn't support multitouch (you can test that with
> > the example http://www.openlayers.org/dev/examples/multitouch.html). As far
> > as I know, it's simply that it is not implemented.
> > See the blog of Christopher Schmidt for more info:
> > http://crschmidt.net/blog/archives/455/who-needs-more-than-one-finger-android/
> > Cédric
> >
> > On Sun, Mar 6, 2011 at 4:23 PM, Richard Greenwood <
> > richard.greenwood at gmail.com> wrote:
> >
> >> As far as I can tell pinch zoom does not work on the Droid:
> >> http://openlayers.org/dev/examples/mobile.html
> >> This doesn't seem to be specific to Openlayers as Google maps in the
> >> Droid browser doesn't work either. Is this due to some patent issues
> >> with Apple, or can anyone explain where the limitation is?
> >>
> >> Thanks,
> >> Rich
> >>
> >> --
> >> Richard Greenwood
> >> richard.greenwood at gmail.com
> >> www.greenwoodmap.com
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> >>
> >
> >
> >
> > --
> > Political blog: http://cedricmoullet.blogspot.com/
> > Welcome to my world: http://www.cedricmoullet.com/
> > My Linked In profile: http://www.linkedin.com/in/cedricmoullet
> > Twitter: http://twitter.com/cedricmoullet
> > Home sweet home:
> > http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list