Select to view content in your preferred language

FeatureTable from client-side GeoJSONLayer not displaying

539
5
11-29-2023 09:42 AM
dwismer
Emerging Contributor

I can't seem to get the FeatureTable to display from my external data source (client-side GeoJSONLayer). When I look at the elements, the #tableView div is empty.

Is there an example of creating a FeatureTable from a client-side layer?

Thanks. 

0 Kudos
5 Replies
UndralBatsukh
Esri Regular Contributor

It should work like any other layer. Here is a simple example: https://codepen.io/U_B_U/pen/VwgGBPM

 

0 Kudos
dwismer
Emerging Contributor

Thanks @UndralBatsukh , I can't seem to get that link to open to your example. 

0 Kudos
UndralBatsukh
Esri Regular Contributor

That is because I posted a wrong link. Sorry about that. Here is the right link: https://codepen.io/U_B_U/pen/VwgGBPM

 

dwismer
Emerging Contributor

Thanks, the link works.

I am still spinning the tires. I may need to explain my use case a little more.

I have a file upload UI element where a user can submit a shapefile. I then take that shapefile and convert it to a GeoJSONLayer. I have successfully been able to add it to the view to display as well as configure the pop-up to work. But still no luck with the FeatureTable. Is it possible to create the FeatureTable and display it dynamically (ie. once the uploaded file displays on the map)?

0 Kudos
dwismer
Emerging Contributor

Apologies, I had my "require" calls all out of order... I got it all to work. Thanks!

0 Kudos