laptop and a wrench

Error

Setting the TextSymbol.HorizontalAlignment property has no effect on FeatureLayer labels in ArcGIS API for Javascript.

Última publicación: September 2, 2019 ArcGIS API for JavaScript
Número de ID del error BUG-000124916
EnviadoAugust 30, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.12
EstadoWill Not Be Addressed

Información adicional

This is as designed. This property only applies when TextSymbol is not used for labeling purposes. The HorizontalAlignment for labels is inferred from the labelPlacement value. The documentation is updated to state this.

Solución alternativa

Use the ArcGIS API for JavaScript version 4.9.

  • To align the text right, set the labelPlacement to center-left, above-left or below-left.
  • To align the text left, set the labelPlacement to center-right, above-right or below-right.

Pasos para reproducir

ID del error: BUG-000124916

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga