[OpenLayers-Users] Openlayers on iPad : zoom smoothness

Eric Lemoine eric.lemoine at camptocamp.com
Sun Oct 9 16:49:30 EDT 2011


On Friday, October 7, 2011, Henri-Maxime SUCHIER <hm.suchier at artefacto.fr>
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 : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111009/0a932671/attachment.html


More information about the Users mailing list