[OpenLayers-Trac] Re: [OpenLayers] #2779: add support for maxVertices in Hander.Path

OpenLayers trac-20090302 at openlayers.org
Wed Mar 30 09:11:03 EDT 2011


#2779: add support for maxVertices in Hander.Path
--------------------------+-------------------------------------------------
 Reporter:  bartvde       |       Owner:  erilem      
     Type:  feature       |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Handler.Path  |     Version:  2.9         
 Keywords:                |       State:  Commit      
--------------------------+-------------------------------------------------
Changes (by erilem):

  * state:  Review => Commit


Comment:

 [attachment:ol-2779.2.patch] changes a few things:

  * the doc strings for {{{maxVertices}}} specify that {{{maxVertices}}}
 don't apply if freehand mode is used
  * we make sure {{{passesTolerance}}} returns true before dealing with
 {{{maxVertices}}}
  * we use {{{finishGeometry}}}, which is the common way for finalizing the
 geometry, this should make the code work with the Polygon handler as well

 I'd like to close #3214, and re-run the tests, before closing this one.

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


More information about the Trac mailing list