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.
asked Jul 24, 2015 at 8:38
1 Answer 1
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);
});
James Milner
1,94218 silver badges22 bronze badges
answered Jul 24, 2015 at 10:30
Explore related questions
See similar questions with these tags.
lang-js