Select to view content in your preferred language

search widget+4.6

3873
34
12-31-2017 02:15 AM
anjelinaponkerat
Frequent Contributor

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();
0 Kudos
34 Replies
anjelinaponkerat
Frequent Contributor

The search widget work with esri ground, but can not work with custom ground!! strange !!!

0 Kudos
anjelinaponkerat
Frequent Contributor

How we can solve this problem?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

As I mentioned in my previous post it has to go through your local esri office and they will file a bug or enhancement request.

0 Kudos
anjelinaponkerat
Frequent Contributor

This sample demonstrates how to add the search widget to a SceneView. The search widget provides a simple interface for searching features in FeatureLayers or geocoding locations with a Locator. Search allows you to enable suggestions as you type in the search box. When the search button is clicked, the search executes and the view uses goTo() to zoom to the top result.

0 Kudos
NathanielRindlaub
Occasional Contributor

Hello, 

I'm experiencing the same issue: on 4.7, using a custom elevation layer (as described here), the search widget does not navigate to the search result location. You can test by adding a search widget to the sandbox code. If you replace the custom elevation layer with "world-elevation" as the value for the 'Ground' property in the map, the search widget will work as expected. 

Has a bug been filed for this issue? 

Best,

Nathaniel

0 Kudos