Where does the feature actions code go in the select widget manifest? What's wrong with this? Can someone please show me a correct sample? Thanks, cob
{
"name": "Select2",
"platform": "HTML",
"version": "2.6",
"wabVersion": "2.6",
"author": "Esri R&D Center Beijing",
"description": "",
"copyright": "",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
"properties": {
"supportMultiInstance": false,
"featureActions": [{
"name": "ShowVertex",
"uri": "ShowVertexFeatureAction"
}]
}
}
Solved! Go to Solution.
Cob,
in your image above delete line 1
remove the comma after the dojo/dom in line 2
line 4 add a comma and dom after BaseWidget.
Sorry it sounds like my use of require sent you down the wrong path.
Thanks again Robert. In my feature action code, is there a way to reference the map popup to close it (or actually move it to the top left) on execute? I tried lang.hitch(this.InfoWindow.hide()) but still can’t find the map object.( I added esri/map and dojo_base/lang to the define and functions also.)
Cob,
This works for me:
onExecute: function(featureSet){
this.map.infoWindow.hide();
}