[OpenLayers-Trac] Re: [OpenLayers] #3276: Missing dependencies for Map and DragPan

OpenLayers trac-20090302 at openlayers.org
Wed Apr 27 12:47:52 EDT 2011


#3276: Missing dependencies for Map and DragPan
-------------------------------+--------------------------------------------
  Reporter:  jpulles           |       Owner:              
      Type:  feature           |      Status:  reopened    
  Priority:  minor             |   Milestone:  2.12 Release
 Component:  general           |     Version:  SVN         
Resolution:                    |    Keywords:              
     State:  Needs Discussion  |  
-------------------------------+--------------------------------------------

Comment(by bartvde):

 ahocevar: we currently only check if the OpenLayers.Control namespace is
 there:

 {{{

         if (this.controls == null) {
             if (OpenLayers.Control != null) { // running full or lite?
                 this.controls = [ new OpenLayers.Control.Navigation(),
                                   new OpenLayers.Control.PanZoom(),
                                   new OpenLayers.Control.ArgParser(),
                                   new OpenLayers.Control.Attribution()
                                 ];
             } else {
                 this.controls = [];
             }
         }
 }}}

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


More information about the Trac mailing list