Map View Edit Plugin
The client side editing sub-system includes a plugin for the map view that allows for the creation of actual geometry objects. For example, the plugin allows the edit sub-system to convert map clicks (XY coordinates) into geometry vertices.
This edit plugin (<plugin id="weave.edit"/>
) is registered with the map view (<view id="com.cohga.html.client.map.mapView">
) in the client configuration as follows:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="urn:com.cohga.server.config#1.0" xmlns:client="urn:com.cohga.html.client#1.0">
<client:config id="Edit">
<!-- more config items here -->
<view id="com.cohga.html.client.map.mapView">
<label>Map</label>
<location>center</location>
<!-- Register the edit plugin with the map view -->
<plugin id="weave.edit"/>
<!-- map config items here -->
</view>
<!-- more config items here -->
</client:config>
</config>