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
Hi,
Is it updated? I got the same question.
It was updated. UniqueValueRenderer | ArcGIS API for JavaScript 4.16
Here's a repo that digs into using the GeoJSONLayer a bit more:
Specifically this sample here, that uses the UniqueValueRenderer on codepen.io that pulls in a .geojson file hosted on the ArcGIS Open Data site:
https://codepen.io/JimBarry/pen/RmWQbP
Extra bonus is that this sample above uses the same UniqueValueRenderer object with both the GeoJSONLayer and the FeatureLayer.