When viewing my feature server service in ArcGIS.com Map I get the Edit link in the info window as image bellow, but in my App, the Edit link is not showing up. is there a way to activate it?
Solved! Go to Solution.
Here is the code to Add Links inside the infoWindow:
if (dojo.byId("MyLink") == undefined) {
dojo.create("a", {
"id": "MyLink",
"class": "action",
"innerHTML": "Edit",
"onclick": "MyLinkAction();return false;"
}, dojo.query(".actionList", map.infoWindow.domNode)[0]);
}
Here is the code to Add Links inside the infoWindow:
if (dojo.byId("MyLink") == undefined) {
dojo.create("a", {
"id": "MyLink",
"class": "action",
"innerHTML": "Edit",
"onclick": "MyLinkAction();return false;"
}, dojo.query(".actionList", map.infoWindow.domNode)[0]);
}
Hello,
it's very interesting but i have a question of beginner
where this code must be integrated ?
cédric grenet Here's a link to a sample in the help that uses the code posted above to add a link to the popup. The sample code should help you see where to add the code.
Geoprocessing tool link in popup | ArcGIS API for JavaScript