在程序的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  />

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2021-11-17
  • 2021-07-26
  • 2022-12-23
  • 2021-08-26
  • 2021-06-26
  • 2021-08-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-07-24
  • 2021-10-28
  • 2021-10-23
  • 2022-12-23
相关资源
相似解决方案