Select to view content in your preferred language

TextSymbol Sizing On Zoom In/Out

1256
2
Jump to solution
12-04-2013 07:48 PM
DK5
by
Deactivated User
I was wondering if anyone has implemented logic to adjust the sizing of TextSymbols on zoom.  I want to allow the text symbol to grow / shrink like a shape would.  I could manually adjust the font size and keep the positioning on zoom, but wanted to check to see if anyone has a solution or suggestion for this.

Thanks guys!
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor
Version 3.7 of the Javascript API added "Symbol scaling". Maybe that's what you are looking for 🙂

"Symbol Scaling: Scale the size of the symbol based on the attribute data. The symbols can be sized according to real world distances, sized exactly proportional with the data, or proportionally mapped to a discrete range of symbol sizes."
https://developers.arcgis.com/en/javascript/jshelp/whats_new.html

Read more at https://developers.arcgis.com/en/javascript/jshelp/intro_bettermaps.html.

View solution in original post

0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
Version 3.7 of the Javascript API added "Symbol scaling". Maybe that's what you are looking for 🙂

"Symbol Scaling: Scale the size of the symbol based on the attribute data. The symbols can be sized according to real world distances, sized exactly proportional with the data, or proportionally mapped to a discrete range of symbol sizes."
https://developers.arcgis.com/en/javascript/jshelp/whats_new.html

Read more at https://developers.arcgis.com/en/javascript/jshelp/intro_bettermaps.html.
0 Kudos
DK5
by
Deactivated User
Yes, that appears to be what I am looking for!  Thanks.  We are currently on version 3.5 so I did end up hooking into the zoom event and just modifying the font size based on the zoomFactor and it is working well.  I think I will look at upgrading to 3.7 soon! 🙂

Thanks again!
0 Kudos