laptop and a wrench

Bogue

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

Dernière publication: September 2, 2019 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000124916
EnvoiAugust 30, 2019
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.12
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000124916

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement