<br><br>On Friday, October 7, 2011, Henri-Maxime SUCHIER <<a href="mailto:hm.suchier@artefacto.fr">hm.suchier@artefacto.fr</a>> wrote:<br>> Hello,<br>><br>> 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 :<br>
><br>> <br>><br>> options = {<br>><br>> div: "viewer",<br>><br>> theme: null,<br>
><br>> projection: sm,<br>><br>> units: "m",<br>><br>> numZoomLevels: 18,<br>
><br>> maxResolution: 156543.0339,<br>><br>> maxExtent: new OpenLayers.Bounds(<br>><br>> -20037508.34, -20037508.34, 20037508.34, 20037508.34<br>
><br>> ),<br>><br>> controls: [<br>><br>> new OpenLayers.Control.TouchNavigation({<br>
><br>> dragPanOptions: {<br>><br>> enableKinetic: true<br>
><br>> }<br>><br>> }) <br>
><br>> ],<br>><br>> layers: [<br>><br>> new OpenLayers.Layer.OSM("OpenStreetMap", null, {<br>
><br>> transitionEffect: 'resize'<br>><br>> })<br>><br>> ] <br>
><br>> };<br>><br>> touchMap = new OpenLayers.Map(options);<br>><br>> <br>><br>> <br>><br>> I’m wondering why I can’t get the same smoothness as on this example <a href="http://openlayers.org/dev/examples/mobile-sencha.html">http://openlayers.org/dev/examples/mobile-sencha.html</a> 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 ?<br>
<br>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?<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br><a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br>
<br>