private function setTooltip(event:Event):void
{
var fl:FeatureLayer = event.currentTarget as FeatureLayer;
for(var l:int=0; l<configFeatureLayers.length; l++)
{
if(fl.id == configFeatureLayers.layer)
{
var flds:String = configFeatureLayers.fields;
var fldArr:Array = flds.split(",");
for each (var gra:Graphic in fl.graphicProvider)
{
var toolTip:String = "";
for (var f:int=0; f<fldArr.length; f++)
{
toolTip += gra.attributes[fldArr] ? String(gra.attributes[fldArr]) + "\n" : "";
}
if (toolTip != "")
gra.toolTip = toolTip;
}
}
}
}
Nathan,
The first thing I would try is set the alpha to 1 to see if the feature are showing on the map properly.
<layer label="Species feature" type="feature" visible="true" url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer/5"/>
<layer label="Species dynamic" type="dynamic" visible="true" url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer/5"/>
<layer label="Operational" type="dynamic" visible="true"
url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer"/>
Jake,
one of the reason for features not getting displayed on the map is that features only when they are within visible scale range.(between min and max scale.)