I have set the labels on the map but it doesnot shows up when i integrate the map on my website.
A webmap using a arcgis js 4.2 api is used to load the map. What should I need to do to make the labels visible through js api?
screenshot from the arcgis map viewer shows the labels.
screenshot from the website: labels are not visible or loaded
2D labeling isn't supported in 4.2. FeatureLayer | API Reference | ArcGIS API for JavaScript 4.2
A lot of the focus on the 4.x series of the API has been driven by the 3D components. 4.x will support 2D labeling in the near future.
How near future are we talking? We need this feature for our project
As 2D labeling is not supported now, you can try TextSymbols. Please find below link: