Hello all,
I am trying to add the panTo functionality to an icon on my custom widget, but it keeps triggering the popup window to open up. How can I just have it pan to the selected feature in my tool without triggering the popup panel?
here is the code block I am trying to implement it in.
var panButton = dj.create("input", {text:"", value:"", panButton:"",
onclick:function(evt){
var q = new Query();
q.where = "OBJECTID=" + evt.target.parentNode.parentNode.attributes["oid"].value;
q.returnGeometry = true;
q.outFields = ["*"];
q.outSpatialReference = map.spatialReference;
var qt = new QueryTask(evt.target.parentNode.parentNode.attributes["uri"].value);