Disable resize on zoom for TextSymbol

549
0
06-15-2010 06:53 AM
ColleenDixon
New Contributor
We have an application where a TextSymbol is placed on a map.  When the user zooms in or out, the TextSymbol resizes by default so the text appears the same size no matter what the level of zoom.  We have a customer request to disable this so when the user zooms out the text gets smaller and when they zoom in it gets larger.

Any ideas on how to accomplish this?

I could disable the resize on zoom event for TextSymbol, but I have no idea how to do that.

I could also make the TextSymbol into some other sort of symbol that doesn't resize (like a SimpleMarkerSymbol) but again, I have no idea how to do that.

What I've done right now is changed the TextSymbol font size for each layer of detail, so say the font starts out at size 48 at lod 2, it will be 68 at lod 3.  As soon as it reaches the max font size it stops resizing and we're back to square one.

Any ideas?  Am I missing something obvious?
Tags (2)
0 Kudos
0 Replies