首页 > Windows开发 > 详细

arcgis api for flex 除去 esri map控件中的logo标志

时间:2015-02-03 20:59:23      阅读:444      评论:0      收藏:0      [点我收藏+]

在程序的applicationComplete方法中添加下列代码

private function reallyHideESRILogo(map : Map) : void {
        for(var i : int = 0 ; i < map.numChildren ; i++){
            var component : UIComponent = map.getChildAt(i) as UIComponent;
            if(component.className == "StaticLayer"){
                for(var j : int = 0 ; j < component.numChildren ; j++){
                    var stComponent : UIComponent = component.getChildAt(j) as UIComponent;
                    if(stComponent.className == "Image"){
                        var img:Image = stComponent as Image;
                        if (img.source.toString().indexOf("logo") > 0){
                            stComponent.visible = false;
                            return;
                        }
                    }
                }
            }
         }
    }

其中map为控件id <esri:map  id="map"/>

arcgis api for flex 除去 esri map控件中的logo标志

原文:http://www.cnblogs.com/aegisada/p/4270877.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!