[OpenLayers-Trac] Re: [OpenLayers] #2822: Scale control: Implement methods activate/deactivate.

OpenLayers trac-20090302 at openlayers.org
Wed Sep 15 11:17:30 EDT 2010


#2822: Scale control: Implement methods activate/deactivate.
------------------------------+---------------------------------------------
  Reporter:  jorix            |       Owner:              
      Type:  feature          |      Status:  reopened    
  Priority:  minor            |   Milestone:  2.11 Release
 Component:  Control.Scale    |     Version:  2.10 RC2    
Resolution:                   |    Keywords:              
     State:  Needs More Work  |  
------------------------------+---------------------------------------------

Comment(by jorix):

 Replying to [comment:10 ahocevar]:
 > This {{{this.div == this.element}}} stuff is so ugly!
 Yes you are right, is ugly.[[BR]]
 I thought about putting a flag like "elelemtIsArgument" but I looked ugly,
 and I put something uglier.[[BR]]
 The flag is required when "element" is an argument, when control is
 activated the "element" is added as a child of "div" and the scale out the
 map disappears and appears inside the map[[BR]]
 How would you like a flag?[[BR]]
 Or is it better to reformulate the constructor removing the argument
 "element" and put the ticket in Milestone 3.0?

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


More information about the Trac mailing list