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.

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);

    });

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.