When developing arcgisserver using Flex, an ESRI logo is added to the map by default. In general, for example, if you use your own service, you can directly add logovisible = "false" to the map attribute to hide the logo. However, if you are using an online map service or a map in a non-service mode, there is no effect. Therefore, two methods are adopted for processing. The first is force removal, and the second is to use your own logo to cover the ESRI logo and steal the day.
Method 1:
Private function Init (): void // init is the function executed after loading by default.
{
Reallyhideesrilogo (mymap );
}
Import MX. Core. uicomponent;
Import MX. Controls. image;
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;
}
}
}
}
}
}