I'm needing to label features in a FeatureLayer and I want to avoid having a seperate DynamicMapServiceLayer which contains the labels.
One approach I have considered is to extend the FeatureLayer to create a LabelledFeatureLayer class and alter the behaviour of the refresh (?) method.
Has anyone tried something similar to this or does anyone have any better suggestions?
Andrew
You could create a graphics layer to display the text/ labels as a result of a query against the feature layer. This way you could let the user choose the label field, or make a configurable.
when i import mx.controls.Alert; it says the import Alert could not be found
is it possible to label the feature layer (in the mxml) without performing a query?