AnsweredAssumed Answered

search widget+4.6

Question asked by anjelinaponkerat on Dec 31, 2017
Latest reply on May 14, 2018 by nrindlaub

Hi

I,m using search widget in 3d view by 4.6 version , but I can not use my feature service!! why? this is my sample:

 

 

      var search = new Search({
        sources
: [{
          featureLayer
: new FeatureLayer("https://services.arcgis.com/b6gLrKHqgkQb393u/arcgis/rest/services/TaxParcelQuery/FeatureServer/0", {
            outFields
: ["*"],
            infoTemplate
: new InfoTemplate("Parcels", "Owner name: ${OWNERNME1}</br>Parcel ID: ${PARCELID}</br>Site address: ${SITEADDRESS}")
         
}),
          outFields
: ["OWNERNME1","PARCELID","SITEADDRESS"],
          displayField
: "OWNERNME1",
          suggestionTemplate
: "${PARCELID}: ${SITEADDRESS}",
          name
: "Parcels",
          placeholder
: "example: Shawn Smith",
          enableSuggestions
: true
     
}],
        view
: view
     
}, "search");


      search
.startup();

Outcomes