[OpenLayers-Trac] Re: [OpenLayers] #2947: allow custom jsfiles array

OpenLayers trac-20090302 at openlayers.org
Wed Dec 1 12:49:36 EST 2010


#2947: allow custom jsfiles array
---------------------+------------------------------------------------------
 Reporter:  erilem   |       Owner:              
     Type:  feature  |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  general  |     Version:  2.10        
 Keywords:           |       State:              
---------------------+------------------------------------------------------

Comment(by tschaub):

 Why not stay in the OpenLayers namespace?

 I don't think it's too onerous for tests to do something like this before
 including the loader script:
 {{{
 var OpenLayers = [
     "OpenLayers/Util.js",
     "OpenLayers/BaseType.js"
 ];
 }}}

 Then the OpenLayers.js loader could check for this array, set jsFiles, and
 redefine the OpenLayers object.

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


More information about the Trac mailing list