Select to view content in your preferred language

4.8 Labeling of Polygons

2809
11
08-14-2018 04:42 AM
JamesS1
Regular Contributor

With the 4.8 API, labeling is now available for points and polygons. I have 10.6.1 installed, webGL enabled, and am consuming a point and polygon feature class as feature layers. The point layer labels just fine, but the polygon layer does not. Am I missing something? I even manually added a labelClass for the polygon layer and it still doesn't work. I can't find any examples of polygons being labeled online with the 4.8 API. Any help is appreciated.

0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Bjorn,

   Sure you can use URL Removed. It does not fail when using a AGOL hosted feature service. I have not tested in a webmap.

0 Kudos
BjornSvensson
Esri Regular Contributor

This isn't supported at 4.8.  The "Known limitation" doc for FeatureLayer WebGL is a bit unclear but when it says "Non-hosted enterprise feature services will be supported at the ArcGIS Server 10.6.1 release." it really means "only feature layers created from feature services (not from map services)".

Not sure why the point service works...

This limitation will go away at 4.9.

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