Bonjour Eric J and merci for your answer J The fact is that pinch zoom actually works (I just checked that double tap zoom also does). But I can't get the same smoothness as on the example I mentioned. On this example, map zoom precisely follows fingers movement : zooming is continuous. On my work, there seems to be sort of a threshold, zoom is made step by step, and I can't understand why such a difference, as initialization are the same on the example and on my code.
There is no public access to the site currently, but I can send any relevant part of my code if it can provide information on what's the problem. Thanks again, HM. De : Eric Lemoine [mailto:[email protected]] Envoyé : dimanche 9 octobre 2011 22:50 À : Henri-Maxime SUCHIER Cc : [email protected] Objet : Re: [OpenLayers-Users] Openlayers on iPad : zoom smoothness On Friday, October 7, 2011, Henri-Maxime SUCHIER <[email protected]> wrote: > Hello, > > I'm currently working on a website displaying a map fullscreen with > openlayers. Main target for this website are iPads, and I thus would like to > have smooth interactions with map (such as continuous zooms for example). > Here is the way I build my map object : > > > > options = { > > div: "viewer", > > theme: null, > > projection: sm, > > units: "m", > > numZoomLevels: 18, > > maxResolution: 156543.0339, > > maxExtent: new > OpenLayers.Bounds( > > -20037508.34, > -20037508.34, 20037508.34, 20037508.34 > > ), > > controls: [ > > new > OpenLayers.Control.TouchNavigation({ > > > dragPanOptions: { > > > enableKinetic: true > > > } > > }) > > > ], > > layers: [ > > new > OpenLayers.Layer.OSM("OpenStreetMap", null, { > > > transitionEffect: 'resize' > > }) > > ] > > }; > > touchMap = new OpenLayers.Map(options); > > > > > > I'm wondering why I can't get the same smoothness as on this example > http://openlayers.org/dev/examples/mobile-sencha.html where the same controls > are used. Is the smoothness here obtained through the use of sencha ? Or is > there something to be done with openlayers apart from the init stage ? The TouchNavigation control should provide "pinch zoom". Does double-tap to zoom in work? And do you have a live example that people could look at? -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
