3 ms·
> OpenLayers has a very wide range of functions, and it pays the price in terms of size, occupying almost 1 Mb of digital space: not ideal for mobile applicatio
by molecule 13y ago
> OpenLayers has a very wide range of functions, and it pays the price in terms of size, occupying almost 1 Mb of digital space: not ideal for mobile applications.
The stock minified OpenLayers.mobile.js weighs in @ ~377kB: http://openlayers.org/dev/OpenLayers.mobile.js http://openlayers.org/dev/OpenLayers.mobile.js
And you can build your own OpenLayers files that contain only what you need: https://github.com/openlayers/openlayers/tree/master/build https://github.com/openlayers/openlayers/tree/master/build
(eg. is your mobile application really going to use OSM and Bing base layers? probably not, so don't ship all of that to the user's browser and spare the browser from parsing the cruft. https://github.com/openlayers/openlayers/blob/master/build/mobile.cfg https://github.com/openlayers/openlayers/blob/master/build/m... )