laptop and a wrench

Bug

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

Last Published: December 5, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000126623
SubmittedNovember 8, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.30
StatusNon-Reproducible

Additional Information

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]); -----------

Steps to Reproduce

Bug ID: BUG-000126623

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