The Geometry editor gives access to the legato map client. It is possible to create and edit geometrys using JS code.
| Inherits from: | <WPS.Contro> |
| WPS. | The Geometry editor gives access to the legato map client. |
| Functions | |
| initialize | Basic constructor |
| destroy | <OpenLayer.Control> |
| draw | <OpenLayer.Control> |
| resets the Geometry Editor and clears the editor form | |
| createGeometry | Shows a Form in configured div and enables the user to paint a geometry based on given process settings. |
| createGeometry | Shows a Form in configured div and enables the user to edit the given geometry. |
| lwpsc: | XML based config for a WPS.Control.GeometryEditor. |
createGeometry: function( processDesc, paramDesc, onExecute, onCancel )
Shows a Form in configured div and enables the user to paint a geometry based on given process settings.
| processDesc | {Object} A Hashmap containing the description for the process The following keys are supported |
| paramDesc | {Object} A Hashmap containing the description for the process parameter The following keys are supported |
| onExecute | {Function} A callback method which will been executed after the user has finished the procress. If this callback returns true the editor resets itself automatically. |
| onCancel | {Function} A callback method which will been executed if the user has canceled this process. If this callback returns true the editor resets itself automatically. |
Shows a Form in configured div and enables the user to edit the given geometry.
| processDesc | {Object} A Hashmap containing the description for the process The following keys are supported |
| paramDesc | {Object} A Hashmap containing the description for the process parameter The following keys are supported |
| onExecute | {Function} A callback method which will been executed after the user has finished the procress. If this callback returns true the editor resets itself automatically. |
| onCancel | {Function} A callback method which will been executed if the user has canceled this process. If this callback returns true the editor resets itself automatically. |
XML based config for a WPS.Control.GeometryEditor.
<lwpsc:GeometryEditor id="geometryEditor" div="geometryEditor">
<map>
<lb:Reference target="map" />
</map>
</lwpsc:GeometryEditor>Basic constructor
initialize : function( options )
OpenLayer.Control
destroy : function()
OpenLayer.Control
draw: function ()
Shows a Form in configured div and enables the user to paint a geometry based on given process settings.
createGeometry: function( processDesc, paramDesc, onExecute, onCancel )