OpenLayersExt.Control.RoutePlotter
A custom OLE control for editing paths and polygons over an OpenLayersExt.Map.
Functional Description
RoutePlotter is an OLE control that allows users to draw and edit paths and polygons. Drawings can be exported and imported in GML and KML format. This control is added by default to OLE maps. Users can activate the control by clicking on its icon located in the OLE map's main control panel. Once activated, the RoutePlotter panel is shown, offering all the different tools for handling vectors.
Using the Control
This control is added to the map object just as any other standard OpenLayers Control would be added. The official OpenLayers website offers more general information on the use of OpenLayers controls:
map.addControl( new OpenLayersExt.Control.RoutePlotter() );
Once the control has been added to the map, users will be able to activate the control by clicking on its icon in the map's control panel.
Summary of tools and funcionalities
select |
Tool for selecting paths, areas, and vertices. Users can drag existing vertices to reshape objects. They can also create new points by dragging on virtual vertices. By hovering the mouse over a vertex and pressing "DELETE" or the "d" key, users can delete vertices. |
path |
Tool for drawing paths. Click to add points. Double click to finish drawing the path. Hold SHIFT and drag for freehand drawing. |
area |
Tool for drawing polygons. Click to set vertices. Double click to finish drawing the polygon. Hold SHIFT and drag for freehand drawing. |
delete |
Button for deleting selected object. If objects exist on screen and none are selected, users are given the option of deleting them all. |
export |
Exports selected path or area in both GML and KML. Users receive the exported XML representations inside a single .zip file. |
import |
Allows users to select a local GML or KML file in order to draw the object over the map. |