[OpenLayers-Trac] Re: [OpenLayers] #2972: Closure Compiler for OpenLayers 2.x

OpenLayers trac-20090302 at openlayers.org
Fri Dec 10 12:40:08 EST 2010


#2972: Closure Compiler for OpenLayers 2.x
---------------------+------------------------------------------------------
 Reporter:  jorix    |       Owner:                  
     Type:  feature  |      Status:  new             
 Priority:  minor    |   Milestone:  2.11 Release    
Component:  general  |     Version:  2.10            
 Keywords:           |       State:  Needs Discussion
---------------------+------------------------------------------------------

Comment(by jorix):

 Features proposed in the patch for use of the Closure Compiler:

  * Use any OpenLayers configuration (*.cfg)
  * Show where there have been compilation errors: source file and line
 number (source code is used, not jsmin)
  * Maximize the checks but discard massive warnings (9676 warnings
 reported using "- warning_level VERBOSE"!)
  * Ensure the verification of undeclared variables (distractions make
 these variables as global)
  * Use externs to declare names of other products, commercial maps,
 Proj4js ...
  * Use SIMPLE_OPTIMIZATIONS, which compresses the code by 20%
 (ADVANCED_OPTIMIZATIONS requires a study of the pros and cons)
  * Launch the Java compiler from phython (discard the use of the Service
 API. To call the compiler uses material from "Closure Library")

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2972#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list