//find the matching feature layer for each (var lyrCurrent:Layer in map.layers) { //stop on the matching layer if (lyrCurrent.name == layername) { flyToSearch = lyrCurrent as FeatureLayer; //Check to see if the featurelayer has relationships if (flyToSearch.layerDetails.relationships) { buttons.showRelateBtn(true); } //Check to see if the featurelayer has attachment capablity if (flyToSearch.layerDetails.hasAttachments) { buttons.showAttachBtn(true); } } } buttons.showRelateBtn(false); buttons.showAttachBtn(false);
if (layername) { //find the matching feature layer var flyToSearch:FeatureLayer; for each (var lyrCurrent:Layer in map.layers) { //stop on the matching layer if (lyrCurrent.name == layername) {
<bing key="my triple top secret key... "/>
John, Are you using the compiled version or are you building FlexViewer using FlashBuilder?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.