Select to view content in your preferred language

InfoWindow.label not showing up

593
1
01-28-2013 11:21 AM
ReneRubalcava
Esri Frequent Contributor
Using Flex SDK 4.6 and ArcGIS API 3.1.

I've spent all day uprading a current application from Flex 4.0/ArcGIS 2.3 to Flex 4.6/ArcGIS 3.1 to make it easier for me to maintain going forward.

I've pretty much nailed everything down except now, my InfoWindows no longer display the label in the header.

Our InfoWindows display a lot of varying information, so I have a class that looks like this.

public class MyInfoWindowRenderer extends SkinnableComponent implements IGraphicRenderer {}

This allows me to skin the InfoWindow and access the graphic to get access to it's source layer and so on. This has always worked just fine.

When a Graphic is loaded, I set the infoWindow label.
public function set graphic(value:Graphic):void
{
// graphic stuff
    _map.infoWindow.label = "Some info based on Graphic";
}


I even tried setting the label to a default text. If I debug, I can that the infoWindow.label is set correctly, and I can even see that infoWindow.labelText::m_label is set. infoWindow.labelVisible is true and I verified that to make sure nothing weird was going on.

At this point, I'm at a loss. It's been quite some time since I've done Flex dev, I mostly maintain these days, so any tips on what could be causing this issue would be appreciated.
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
Try adding a label:String property to MyInfoWindowRenderer.
0 Kudos