[OpenLayers-Users] OpenLayer & iPhone
Eric Lemoine
eric.lemoine at camptocamp.com
Tue Jun 21 11:46:34 EDT 2011
On Tue, Jun 21, 2011 at 5:10 PM, Mohammed Malaka <MMalaka at imgs.ie> wrote:
> Hi All,
>
>
>
> I am working on a .Net Mapping web application for Mobile that use
> OpenLayers.
>
>
>
> I created the following simple page
>
>
>
> <html><body>
>
> <div id="demoMap"></div>
>
> <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
>
> <script>
>
> map = new OpenLayers.Map("demoMap");
>
> map.addLayer(new OpenLayers.Layer.OSM());
>
> map.zoomToMaxExtent();
>
> </script>
>
> </body></html
>
>
>
> This pages take about 10s to load on the iPhone 4.3.3 (using Safari browser)
> and about 3-4s to load on Andriod 2.3 HTC desire HD (using the default
> browser).
>
>
>
> why it is slow on the iPhone?
>
> Any advice on how to improve the performance?
You can try <http://www.openlayers.org/dev/OpenLayers.mobile.js>. But
as Andreas said you'd be better off creating your own build.
--
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
More information about the Users
mailing list