OpenLayers.Control.ModifyFeature.BySegment

A mixin for the ModifyFeature control to allow editing of large geometries by editing one segment at a time, the segment which is closest to the mouse cursor on hover.

To use this is in combination with OpenLayers.Control.ModifyFeature include this file in your build and set bySegment to true on the ModifyFeature control.  Also note this code depends on the rbush library which can be found at: https://github.com/mourner/rbush

Summary
OpenLayers.Control.ModifyFeature.BySegmentA mixin for the ModifyFeature control to allow editing of large geometries by editing one segment at a time, the segment which is closest to the mouse cursor on hover.
Properties
hoverTolerance{Integer} Number of pixels around the hover location to query the spatial index in order to find the closest segment.
Functions
destroyTake care of things that are not handled in superclass.

Properties

hoverTolerance

{Integer} Number of pixels around the hover location to query the spatial index in order to find the closest segment.  Defaults to 25.

Functions

destroy

destroy: function()

Take care of things that are not handled in superclass.

destroy: function()
Take care of things that are not handled in superclass.
Close