[OpenLayers-Trac] [OpenLayers] #746: add() function should be tolerant to omitted y value

OpenLayers trac at openlayers.org
Fri Jun 29 08:31:53 EDT 2007


#746: add() function should be tolerant to omitted y value
----------------------+-----------------------------------------------------
  Reporter:  euzuro   |       Owner:             
      Type:  feature  |      Status:  new        
  Priority:  minor    |   Milestone:  2.5 Release
 Component:  general  |     Version:  2.4        
Resolution:           |    Keywords:             
----------------------+-----------------------------------------------------
Comment (by crschmidt):

 Erik:

 I can go either way on this, but I think this is just an issue of
 documentation. Add with a single parameter has multiple possible
 interpretations -- for example, I would have assumed that it would add the
 same value to both properties, not to just the x value. Perhaps this is a
 case where it would make sense to do nothing, and report an error via
 OpenLayers.Console.error(), rather than adding in too much magic here.
 Does that seem like a valid behavior?

 Schuyler: Since you're -1, I'd like to hear what you propose as an
 alternative -- is what I mentioned above appropriate?

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


More information about the Trac mailing list