zoukankan      html  css  js  c++  java
  • arcgis api for flex 除去 esri map控件中的logo标志

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

    多看一行书,就少写一行代码,记录点滴,用心生活。
  • 相关阅读:
    RedHat的定制安装
    Linux系统概述
    嵌入式学习方法
    mysql联合查询
    mysql之count
    memcached安装
    css书写规则
    nginx的fastcgi_param参数详解
    array_2.array_rand
    array_1.array_map
  • 原文地址:https://www.cnblogs.com/aegisada/p/4270877.html
Copyright © 2011-2022 走看看