How can I highlight a point using ArcGIS API for JavaScript?
When I use the function of centerAndZoom
, I also want to highlight this point.
queryTask.execute(query, function (results) {
var selectionSymbol = new PictureMarkerSymbol('http://www.clipartandgraphics.com/images/borders/coloroval.gif', 50, 50);
var graphic = new Graphic(results[0].geometry, selectionSymbol, 50, 50);
map.graphics.add(graphic);
map.centerAndZoom(results[0].geometry, 15);
});