You are here: > ESRI Forums > arcgis server forums > Thread Replies

ArcGIS Server Forums

ArcGIS API for Flex forum

logoVisible="false" + custom layer : ESRI l...   Guilhem Vellut Jan 21, 2009
Re: logoVisible="false" + custom layer : ES...   Bjorn Svensson Jan 21, 2009
Re: logoVisible="false" + custom layer : ES...   Wu Yongfeng Feb 18, 2009
Re: logoVisible="false" + custom layer : ES...   Brian Russo Mar 01, 2009
Re: logoVisible="false" + custom layer : ES...   S R Mar 02, 2009
Re: logoVisible="false" + custom layer : ES...   Guilhem Vellut Mar 02, 2009
Re: logoVisible="false" + custom layer : ES...   George Newbury Mar 05, 2009
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject logoVisible="false" + custom layer : ESRI logo still visible 
Author Guilhem Vellut 
Date Jan 21, 2009 
Message Hello,

I am using the Flex API (without the Flex Viewer or anything fancy) to display data from ArcIMS using some serverside framework.

I have created a subclass of DynamicMapServiceLayer called KogisLayer for this purpose. Basically the MXML fragment for the setup looks like the code below. There are just my custom KogisLayer and a Graphics layer on the map.

The logoVisible attribute on the map is set to false, but the ESRI logo still appears. Is there another thing to do in order to make it disappear or is this a restriction (as when using ESRI's own ArcGIS services)?

Thanks for your help.

Guilhem 
 
<esri:Map id="map" logoVisible="false">
<layers:KogisLayer id="kogisLayer" url="/myapp/servlet/com.esrifrance.kogis.server.KogisServlet?" />	
<esri:GraphicsLayer id="graphicsLayer" />
</esri:Map>
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: logoVisible="false" + custom layer : ESRI logo still visible 
Author Bjorn Svensson 
Date Jan 21, 2009 
Message This is an API restriction.

"Turning off the logo is only possible if you connect to your own ArcGIS Server (not counting ArcGIS Online)."
http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/Map.html#logoVisible

Connecting to your own ArcGIS Server means using ArcGISTiledMapServiceLayer or ArcGISDynamicMapServiceLayer. 
  Bjorn Svensson,
ESRI Flex team
http://resources.esri.com/arcgisserver/apis/flex/ (version 1.x)
http://resources.arcgis.com/content/arcgis-api-flex (version 2.x beta) 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: logoVisible="false" + custom layer : ESRI logo still visible 
Author Wu Yongfeng 
Date Feb 18, 2009 
Message Map which added ArcIMS service also cannot hide the logo though the ArcIMS server is mine. Is there any way to hide it, or will it be changed in next version? 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: logoVisible="false" + custom layer : ESRI logo still visible 
Author Brian Russo 
Date Mar 01, 2009 
Message This restriction needs to be changed. We have multiple server licenses but have some networks where we run directly with pre-cached tiles/embedded data.

It's a senseless restriction in the API.

Anyway I just covered it up with something else. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: logoVisible="false" + custom layer : ESRI logo still visible 
Author S R 
Date Mar 02, 2009 
Message This is useless restriction from ESRI. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: logoVisible="false" + custom layer : ESRI logo still visible 
Author Guilhem Vellut 
Date Mar 02, 2009 
Message If you want, I have implemented a workaround (see below). This function should be called when the map loads and every time a new layer is added

But I totally agree that the restriction does not really make a lot of sense. 
 
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"){
           stComponent.visible = false;
           return;
         }
      }
  }
}
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: logoVisible="false" + custom layer : ESRI logo still visible 
Author George Newbury 
Date Mar 05, 2009 
Message Guilhem,

Thank you for posting that pieve of code. I am using the Flex API for a standalone viewer and since it doesn't connect to a server I thought I'd have to cover up the logo. This makes for a more elegant solution.

Thank you
George Newbury