I'm working with the new map components https://developers.arcgis.com/javascript/latest/references/map-components/?path=/docs/welcome--do
Is there any documentation on how to create a custom component using the map component paradigm (I.e. what's required to make "MyNewComponent" below work)? The old way was pretty clear with view.ui.add(...). This is a little different:
<ArcGisMap itemId={itemId}>
<MyNewComponent position="top-left" />
</ArcGisMap>
Thanks!
Currently, you can use the arcgis-placement component for this.
<arcgis-map> <arcgis-placement position="top-right"> <my-custom-component></my-custom-component> </arcgis-placement> </arcgis-map>
Thanks! Works perfectly in react and even gets me a reference to the map.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.