AnsweredAssumed Answered

Map graphic does not display as a result of a query

Question asked by laura_busolo@redlands.edu_univredlands on Aug 20, 2017
Latest reply on Aug 21, 2017 by rscheitlin



I have an application where the query result should be displayed on a table as well as highlight points that meet the query on the map. I am having a challenge as to why the points are not highlighted. Kindly assist. Here is a snippet of the query section of the code.

ArcGIS API for JavaScript queryitems grahpics 

                        query.where = queryString;
                        lyrAcademies.selectFeatures(query, FeatureLayer.SELECTION_NEW, function(results){

                //Show the results as highlighted boxes on the map
                function showResults(results) {

                    var selectSymbol = new SimpleMarkerSymbol(
                        SimpleMarkerSymbol.STYLE_SQUARE, 15,
                        new SimpleLineSymbol(
                            new Color([255,0,0]), 1),
                        new Color([0,255,0,0.25])