Is it possible to add a label layer (feature layer with labels turned on) in API 4.3 for 2D?

1643
2
04-19-2017 02:49 PM
JamesS1
Occasional Contributor

Is it possible to add a label layer (feature layer with labels turned on) in API 4.3 for 2D?

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

James,

  See this sample (it uses a mapimagelayer, but the second link shows that FeatureLayer supports the same):

MapImageLayer - label sublayer features | ArcGIS API for JavaScript 4.3 

https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labeling... 

0 Kudos
JamesS1
Occasional Contributor

Thanks, Robert - The FeatureLayer labeling appears to not be supported in 2D yet, however, I was able to get labeling working with the MapImageLayer (via an AGS mapp service consisting of JUST the labeled layer with features turned off).

0 Kudos