laptop and a wrench

Bogue

sizeInfo property of LabelsClass in JS API 3.30 does not work.

Dernière publication: December 5, 2019 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000126623
EnvoiNovember 8, 2019
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée3.30
StatutNon-Reproducible

Informations supplémentaires

The sizeInfo property cannot be used with a string field since the minDataValue and maxDataValue need to be numbers. When used with a numeric field, this property works. Example application showing the property working: https://jsfiddle.net/lboyd/unv64swe/9/ ----------- var json = { "labelExpressionInfo": { "value": "{POP2007}" }, }; //create instance of LabelClass (note: multiple LabelClasses can be passed in as an array) var labelClass = new LabelClass(json); labelClass.symbol = statesLabel; // symbol also can be set in LabelClass' json labelClass.sizeInfo = { "field": "POP2007", "minSize": 10, "maxSize": 20, "minDataValue": 1993495, "maxDataValue": 37483448 }; states.setLabelingInfo([labelClass]); -----------

Étapes pour reproduire

ID de bogue: BUG-000126623

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