AnsweredAssumed Answered

Add a graphic but not displayed

Question asked by shaningesri on Mar 12, 2018
Latest reply on Mar 13, 2018 by shaningesri

I tried to add a polygon feature on the map using the code below:

                  var selectedPoly = esri.geometry.Polygon();


                    var polySymbolBlue = new esri.symbol.SimpleFillSymbol();
                    polySymbolBlue.setOutline(new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
                                new esri.Color([0, 0, 0, 0.5]), 1));
                    polySymbolBlue.setColor(new esri.Color([0, 0, 255, 0.7]));
          , polySymbolBlue);  // selectedPoly - a polygon w/ rings of 14 points
                    _myMap.setExtent(extent, true);

However, this polyon graphic does not display.  What is missing in my code?  Thanks.