谁知道怎么去掉arcgis地图右下角的esri?求解
展开全部
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags"
pageTitle="Using a WMS map service with the ArcGIS API for Flex" xmlns:arcgis="cn.com.vistech.arcgis.*">
<esri:Map id="map" load="removeArcgisLogo()">
<arcgis:JiangSuWMSLayer/>
</esri:Map>
<!--下面的功能是去掉地图的logo-->
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
private function removeArcgisLogo():void{
if(map.numChildren < 1)
{
return;
}
for(var i : int = 0 ; i < map.numChildren ; i++)
{
var component:UIComponent = map.getChildAt(i) as UIComponent;
if(component != null)
{
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;
}
}
}
}
}
}
]]>
</fx:Script>
</s:Application>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags"
pageTitle="Using a WMS map service with the ArcGIS API for Flex" xmlns:arcgis="cn.com.vistech.arcgis.*">
<esri:Map id="map" load="removeArcgisLogo()">
<arcgis:JiangSuWMSLayer/>
</esri:Map>
<!--下面的功能是去掉地图的logo-->
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
private function removeArcgisLogo():void{
if(map.numChildren < 1)
{
return;
}
for(var i : int = 0 ; i < map.numChildren ; i++)
{
var component:UIComponent = map.getChildAt(i) as UIComponent;
if(component != null)
{
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;
}
}
}
}
}
}
]]>
</fx:Script>
</s:Application>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
logoVisible="false" (必须是自己发布的图)
追问
这个我试过了,js语言的不好用,我最后自己搞定了,谢谢你
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
ps
zzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzz
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询