0

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.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jul 24, 2015 at 8:38

1 Answer 1

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.