[OpenLayers-Trac] [OpenLayers] #3536: Documentation missleading

OpenLayers trac-20090302 at openlayers.org
Mon Oct 3 16:21:38 EDT 2011


#3536: Documentation missleading
---------------------------+------------------------------------------------
 Reporter:  petschge       |       Owner:              
     Type:  bug            |      Status:  new         
 Priority:  major          |   Milestone:  2.12 Release
Component:  documentation  |     Version:  2.11        
 Keywords:                 |       State:              
---------------------------+------------------------------------------------
 Googling for e.g. "map center site:openlayers.org" brought me to
 http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html which still
 refers to the map.center property, which is broken as of the last release.
 There is no warning that this property might be private or going away and
 that map.getCenter() should be used. This just cost me about an hour to
 track down and fix. To avoid wasting more peoples time it would be good if
 documentation actually matched to code.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3536>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list