AnsweredAssumed Answered

HELP! SimpleFillSymbol and Search Widget modification

Question asked by 924216004 on Jul 23, 2015
Latest reply on Jul 23, 2015 by 924216004

Hello,

I need direction. I want to modify Search using a suggestion template | ArcGIS API for JavaScript by incorporating the SimpleFillSymbol and SimpleLineSymbol. I feel I am close but still missing code. It will load but now the search box disappears. THANKS

 

 

var search = new Search({
        sources: [{          
                       
           featureLayer: new FeatureLayer("http://services.arcgis.com/HYLRafMc4Ux6DA8c/arcgis/rest/services/Parks_Search/FeatureServer/1", { 
             mode: FeatureLayer.MODE_ONDEMAND,           
             outFields: ["*"],                     
             infoTemplate: new InfoTemplate("Identify County Parks", 
             "Park Name: ${Name}</br>ParK Ownership: ${ParkType}</br>"), 
             
             sfs: new SimpleFillSymbol(SimpleFillSymbol.STYLE_Null, 
             new SimpleLineSymbol (SimpleLineSymbol.STYLE_SOLID, new Color([255,0,0]), 2), 
             new Color([255,255,0,0,0.5]))           
          }),
                    
      }],
        map: map
      },  "search");

      search.startup();
      
      }); 
      map.addLayer(featureLayer); 

Outcomes