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();
The search widget work with esri ground, but can not work with custom ground!! strange !!!
How we can solve this problem?
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.
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.
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