I'm trying to add a Search widget to the base Esri Angular example. Essentially trying to combine:
with
ArcGIS API for JavaScript Sandbox
to add a search widget in the Angular example. Within esri-map.components.ts I have this (my additions in bold below). Compile error is: Namespace '__esri' has no exported member 'SearchWidgetProperties'. I realize this may be an Angular question but how can I see a list of valid exported entities? And how would I hook up the search widget to the map in this context? Thanks for any help getting me pointed in the right direction.
esri-map-components.ts:
Hi James,
>> I realize this may be an Angular question but how can I see a list of valid exported entities?
Looks like you have a typescript question, but in general for questions about 3rd party framework integration it's best to post questions directly on the respective github repos.
You can use an IDE like VS Code and it will show the exported members via intellisense. Here's a link for more info.
If you have doubts and want to double check the definitive source you can go directly to our `d.ts` file and control-F for the name: https://raw.githubusercontent.com/Esri/jsapi-resources/master/4.x/typescript/arcgis-js-api.d.ts
>> And how would I hook up the search widget to the map in this context?
There are several options. Option A - remove the reference to "esri.SearchWidgetProperties" because there isn't one. Option B - replace it with type "any", or Option C - you could create your own interface to enforce which properties are valid.