[OpenLayers-Users] How to minimize openlayers.js file

Moataz Elmasry zaza1851983ml at googlemail.com
Thu Jul 29 07:55:32 EDT 2010


openlayers use python script to build the classes together in one file. 
I take it that you want to minimize the openlayers.js and/or remove 
unused classes
Checkout the code from the svn, and you'll find the folder build, which 
contains the the python script and build profiles. At the top of each ol 
class there's one or more @requires tags which indicates class 
dependancy. So in your code add @requires to the ol classes you use and 
they in turn will include their dependancies and so on
Take a look also at related ol trac
http://trac.openlayers.org/wiki/Release/Procedure
http://trac.openlayers.org/wiki/Profiles

Regards,
Moataz

usha madhuri wrote:
> Hi all,
> We are working on a web application and are aiming to speed up our
> application. Customizing openlayers.js file would serve our purpose, but we
> have no idea of doing it. Please guide us.
>
> Regards,
> Madhuri
>   




More information about the Users mailing list