Select to view content in your preferred language

Does the .NET SDK have an equivalent to the javascript GeoJsonLayer?

957
2
09-04-2020 09:16 AM
James_C_Dorsey
Emerging Contributor

I've been using the GeoJsonLayer with the ArcGIS javascript API to load a GeoJSON file from a url and display the resulting shapes on a map.  Is there an equivalent layer in the .NET SDK (e.g. similar to the KmlLayer)?  If not, what is the typical workflow for getting GeoJSON data on a map using the .NET SDK?

Thanks,

-Chris

Tags (1)
0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor

There's no out-of-the-box support for GeoJson in the runtime.

To do this you'd need a GeoJson parser and create a FeatureCollectionTable or GraphicsOverlay and populate it based on the contents of the json you parsed.

There's quite a few 3rd party geojson parsers you can use: NuGet Gallery | Packages matching geojson 

James_C_Dorsey
Emerging Contributor

Thanks Morten, I'll explore that option.  I suppose just pre-converting the GeoJSON to KML (or converting on the fly) and using KmlLayer is an option too.

0 Kudos