Skip to content
on enhancement of Openlayers.Handler.Path that allows modifying points.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


ModifiablePath is an Openlayers Class similar to Openlayers.Handler.Path

When placing points with standard Path hander, once a point has been placed,
it's not possible to modify it.

With ModifiablePath, it's possible to drap points of the path to move them.
When a new point is entered, a temporary middle point appears. That point can
be used to split portion of a path. So, new points can be added as needed.

Also, when pressing Shift key, yes enter in delete mode. When in delete mode,
clicking on a point of the path deletes the point. Releasing Shift key leaves
delete mode.

Once path has been finalized (by double clicking), the path cannot be modified
You can’t perform that action at this time.