TransWikia.com

Labeling a 2D feature layer in ArcGIS javascript API 4.x

Geographic Information Systems Asked on March 6, 2021

I’m in the process of updating my application from ArcGIS JS API3.x to 4.7. I’m unable to add labeling to a feature class. As per ESRI, they support labeling only for 3D or a MapImage layer in 2D. In 3.X i was able to add a label class to a feature layer to show the labels.

Is there a way to add the labels in 4.x?

One Answer

If you look at the 3.x to 4.x Functionality Matrix, if you look under esri/layers/FeatureLayer > Labeling, as of current writing (June 2018) it says "Supported in SceneView(3D). Coming soon for MapView(2D)."

Answered by GavinR on March 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP