Select to view content in your preferred language

FeatureLayer Id from Graphic

542
1
08-02-2011 03:12 AM
GlenReid
Deactivated User
Is there a way to get the featureLayer id from a graphic in the mouseOver handler?  I can get the graphic id from the event.target, but don't see a way to get the id from the related featureLayer.

private function onMouseOverHandler(event:MouseEvent):void {
     var gr:Graphic = Graphic(event.target);
     gr.symbol = mouseOverMarker;
     mapTip.htmlText = "<b>Info: </b>" + gr.attributes.INFO.toString() + "\n"
          + "<b>Date: </b>" + gr.attributes.OBDATE.toString();
     map.infoWindow.label = "ID: " + gr.attributes.ID;
     map.infoWindow.closeButtonVisible = false;
     map.infoWindow.show(map.toMapFromStage(event.stageX, event.stageY));
}


Thanks,
Glen
Tags (2)
0 Kudos
1 Reply
GlenReid
Deactivated User
All good -- the graphicsLayer id matches the featureLayer id.
0 Kudos