This repository was archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
AdvancedSnappingAgent
Tobia edited this page Jun 30, 2014
·
4 revisions
This component wrap the OpenLayers's Snapping control in order to snap feature's vertex during the editing operations. He interacts with the gxp.FeatureManager and gxp.FeatureEditor in order to manage snapping's operations.
//..
{
"ptype": "gxp_featureeditor",
"featureManager": "featuremanager",
"toggleGroup": "toolGroup",
"autoLoadFeatures": false,
"actionTarget":{
"target":"paneltbar",
"index":24
},
"snappingAgent": "snapping-agent"
},{
"ptype": "gxp_advancedsnappingagent",
"id": "snapping-agent",
"actionTarget":{
"target":"paneltbar",
"index":16
}
},
//...
-
ptype: The plugin type (gxp_advancedsnappingagent). -
id: The plugin's id. -
actionTarget: As usually, this means the action target location inside the Viewport.