OpenLayers OpenLayers

Changeset 8584

Show
Ignore:
Timestamp:
01/06/09 11:24:51 (1 year ago)
Author:
tschaub
Message:

Prepare vector layer for triggering sketchmodified and vertexmodified events.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/editing/lib/OpenLayers/Layer/Vector.js

    r8398 r8584  
    7575     *      Listeners will receive an object with a *feature* property referencing  
    7676     *      the modified feature. 
     77     *  - *vertexmodified* Triggered when a vertex within any feature geometry 
     78     *      has been modified.  Listeners will receive an object with a 
     79     *      *feature* property referencing the modified feature and a *vertex* 
     80     *      property referencing the vertex modified (always a point geometry). 
     81     *  - *sketchmodified* Triggered when a feature sketch bound for this layer 
     82     *      is modified.  Listeners will receive an object with a *components* 
     83     *      property.  This array like property will contain all relevant 
     84     *      geometry parts of the sketch.  In the case of a point sketch, this 
     85     *      will be a point geometry.  For a line sketch, this will be a point 
     86     *      geometry and the line that the point is a part of.  For a polygon 
     87     *      sketch, the components will be the modified point, the linear ring 
     88     *      that the point belongs to, and the polygon geometry. 
    7789     *  - *refresh* Triggered when something wants a strategy to ask the protocol 
    7890     *      for a new set of features. 
     
    8395                  "beforefeatureselected", "featureselected", "featureunselected",  
    8496                  "beforefeaturemodified", "featuremodified", "afterfeaturemodified", 
    85                   "refresh"], 
     97                  "vertexmodified", "sketchmodified", "refresh"], 
    8698 
    8799    /**