[OpenLayers-Users] OpenLayer & iPhone
Andreas Hocevar
ahocevar at opengeo.org
Tue Jun 21 11:40:59 EDT 2011
Hi,
two things to do:
1) Don't use http://www.openlayers.org/api/OpenLayers.js - this is a full build (you need less than 10% of what it contains), hosted on a slow server.
2) Instead, build your custom OpenLayers.js with only what you need and host it on your server along with the app. See http://docs.openlayers.org/library/deploying.html for instructions.
Andreas.
On Jun 21, 2011, at 17:10 , Mohammed Malaka 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?
>
> I tried the 2.11 release and I get the same results.
>
> Regards
>
> Mohammed Malaka
> Sr. Applications Engineer, IMGS
> 8b Keypoint, Rosemount Business Park, Dublin 11
> t: +353 1 885 3839
> w: www.imgs.ie e: mmalaka at imgs.ie
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list