laptop and a wrench

Bug

FeatureLayer polyline label placement error when choosing anything but center-along: '[esri.views.2d.engine.webgl.WGLMeshFactory] Found invalid label placement type center-end for esriGeometryPolyline. Defaulting to center-along'.

Last Published: October 11, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000125905
SubmittedOctober 10, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.13
Operating SystemWindows OS
Operating System Version10.0
StatusKnown Limit

Additional Information

This is a known limitation for FeatureLayer Polylines stated in the documentation: "FeatureLayer Polylines only support center-along label placement in 2D MapViews." See Known Limitation section for the labelPlacement property: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelPlacement

Workaround

Set the placement to 'center-along' stops the error.

Steps to Reproduce

Bug ID: BUG-000125905

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options