Select to view content in your preferred language

Layer labels are not showing on the webmap

2586
3
02-02-2017 03:36 AM
LaxmanThapa
Emerging Contributor

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.

Labels are visible on the arcgis map viewer

screenshot from the website: labels are not visible or loaded

website screenshot without labels

0 Kudos
3 Replies
KristianEkenes
Esri Regular Contributor

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.

TimDonovan
Deactivated User

How near future are we talking?  We need this feature for our project

0 Kudos
KrishV
by
Frequent Contributor

As 2D labeling is not supported now, you can try TextSymbols. Please find below link:

TextSymbol | API Reference | ArcGIS API for JavaScript 4.3 

0 Kudos