Change icon for dynamic legend

1403
5
08-09-2010 07:11 AM
PeteVitt
Frequent Contributor
I'm trying to change the icon for the dynamic legend -- I've pointed the icon attribute to the icon I made (.png) and it shows up, the problem is no matter how big I make the icon, it gets scrunched up so it cant be read.  Is there a location in the code somewhere where the size of the icon is hard coded or something else I'm missing?  I currently have the icon at 450X120 pixels and it looks the same as when it was 150X40 px

Thanks

Pete
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Pete,

   All widget icons are hard coded to 40 by 40. It is set by the WidgetTemplateSkin. If you try and change this it will effect all widgets.
0 Kudos
PeteVitt
Frequent Contributor
thanks -- someone wanted the word "Legend" spelled out -- dont know how I'm going to get that readable.  The widget works great --

Pete
0 Kudos
PeteVitt
Frequent Contributor
since I only have two widgets for this project both with custom icons I tried to modify the widgettemplateskin width and height for icons as shown below -- the icon was bigger when the legend appeared on the map, but there was no change in the icon in the menu bar on top of the map -- is there anything else I would need to change?

<mx:Image id="icon"
             ....             
              width="150"
              height="40"
             ...   
</mx:Image>

Thanks

Pete
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Pete,

    Yep that is in the widgets/HeaderController/WidgetItemDataGroupRenderer.mxml
0 Kudos
PeteVitt
Frequent Contributor
Thanks Robert - that did the trick
0 Kudos