i used GeoJSONLayer to render *.geojson file and i want to display unique value of type. However i see ESRI document( UniqueValueRenderer ) not support for GeoJSONLayer.
How can i reach it? or any solution for display unique type on ClassBreaksRenderer
type example: ["AB", "CDE, "DEFGH, "VC", "NM"]
Thank for help
UniqueValueRenderer works with GeoJSONLayer as well. This is missing in the documentation, we'll update.
Is it updated? I got the same question.
Here's a repo that digs into using the GeoJSONLayer a bit more:
GitHub - JimBarry/arcgis-basic-geojsonlayer: ArcGIS JS API v4.11 introduced a new GeoJSONLayer. Usin...
Specifically this sample here, that uses the UniqueValueRenderer on codepen.io that pulls in a .geojson file hosted on the ArcGIS Open Data site:
Extra bonus is that this sample above uses the same UniqueValueRenderer object with both the GeoJSONLayer and the FeatureLayer.