AnsweredAssumed Answered

How to remove actionList items in InfoWindow/Popup

Question asked by cwilcomb on Mar 28, 2012
Latest reply on Mar 29, 2012 by cwilcomb
I have been able to successfully add items to the popup/infoWindow, like this

    var detailsLink = dojo.create("a", {         "class": "action",         "innerHTML": "Details",         "href": "javascript:void(0);"     }, dojo.query(".actionList", map.infoWindow.domNode)[0]);      dojo.connect(detailsLink, "onclick", function (evt) {         var feature = map.infoWindow.getSelectedFeature();         ExecuteViewPermit(feature.attributes.PermitNumber);     });


But how can I remove the default 'Zoom To' anchor tag?

I have tried adding variations of dojo/jQuery destroy/remove functions using the class selectors to my init and map onLoad functions:

dojo.destroy('.zoomTo');
$('.zoomTo').remove();

Any suggestions?

Thanks,
Chad

Outcomes