Select to view content in your preferred language

How to load a live GeoJSON URL in WebMaps

237
2
12-13-2024 12:04 AM
Labels (1)
LindsayRaabe_FPCWA
MVP Regular Contributor

HI brains trust. I'm hoping someone can help me here. I've been reading all the literature, googling, etc and not getting far. I have a GeoJSON URL from tracertrak that shows the Last Known Location data for a tracking system. When I view the URL in the browser, I see the JSON data as expected. 

LindsayRaabe_FPCWA_4-1734076713676.png

LindsayRaabe_FPCWA_5-1734076747844.png

LindsayRaabe_FPCWA_3-1734076649394.png

LindsayRaabe_FPCWA_2-1734076619612.png

I followed the Esri instruction to publish a GeoJSON as a hosted layer, which generated a JSON file in ArcGIS Online and a hosted layer showing the data, but it's static once published. I then found more instructions that said to load it directly into the WebMap and add a refresh interval, but when I do this, it adds as a table with no attributes and no data (or any other properties). 

LindsayRaabe_FPCWA_6-1734076881601.png

LindsayRaabe_FPCWA_7-1734076944182.png

LindsayRaabe_FPCWA_1-1734076598270.png

What am I missing? 

I also used the Add Data function in Experience Builder to add it to a map and it loaded fine, but obviously this is temporary and can't be customised, so not overly useful (just dots on a screen with popups). 

Lindsay Raabe
GIS Officer
Forest Products Commission WA
0 Kudos
2 Replies
RussRoberts
Esri Notable Contributor

If you can share a sample of the GeoJSON file that would be great and we can take a look. You can share it to russell_jsapi in a group or dm me here. As a FYI as well  the GeoJSON by reference can only support one layer in the GeoJSON and not multiple layers. 

LindsayRaabe_FPCWA
MVP Regular Contributor

Hi Russ. DM sent. 

Lindsay Raabe
GIS Officer
Forest Products Commission WA
0 Kudos