laptop and a wrench

Bug

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

Zuletzt veröffentlicht: September 2, 2019 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000124916
EingereichtAugust 30, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.12
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000124916

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln