1 首先如何设置 infowindow或infoWindowRenderer的边框背景色:
<fx:Style> @namespace esri "http://www.esri.com/2008/ags";
esri|InfoWindowLabel
{
color: white;
font-size: 20;
}
esri|InfoWindow
{
border-thickness: 0;
background-color: green;
font-size: 16;
upper-left-radius: 15;
upper-right-radius: 0;
info-placement: top;
info-offset-y: 20;
}
</fx:Style>
效果如图:
2 点击地图 任意位置 弹出一个信息窗:
private function onMouseCLK(event:MapMouseEvent):void
{
myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));
//设置里面的文字:
myTextArea.text="asdfasf";
}
设置信息泡的组件:
<esri:Map id="myMap" mapClick="onMouseCLK(event)">
<esri:infoWindowContent>
<mx:TextArea id="myTextArea"
width="250" height="75"/>
</esri:infoWindowContent>
</esri:Map>
3 点击任意一个图元,弹出信息窗:
方式一: 最简单,直接在给图层的infoWindowRenderer 属性赋值:
<esri:GraphicsLayer >
<esri:infoWindowRenderer>
<fx:Component>
<mx:VBox backgroundColor="0xffffff"
color="0x444444"
label="Parcel {data.PARCELID}">
<mx:Label text="Owner: {data.OWNERNME1}"/>
<mx:Label text="Address: {data.SITEADDRESS}"/>
<mx:Label text="Land Value: {data.LNDVALUE}"/>
<mx:Label text="Landuse: {data.USECD}"/>
</mx:VBox>
</fx:Component>
</esri:infoWindowRenderer>
<esri:GraphicsLayer/>
方式二: 给graphic加 事件,在事件处理函数中弹出信息窗,所以当图元超过500时,效率很差。
<esri:GraphicsLayer id="roadLayer" graphicAdd="fLayer_graphicAddHandler" />
<!--当图层被加入图元时 触发事件-->
protected function fLayer_graphicAddHandler(event:GraphicEvent):void
{
event.graphic.addEventListener(MouseEvent.MOUSE_CLICK, onMouseClkHandler);
}
pprivate function onMouseClkHandler(event:MouseEvent):void
{
var gr:Graphic = Graphic(event.target);
gr.symbol = mouseOverSymbol;
myMap.infoWindow.label = gr.attributes.NAME;
myMap.infoWindow.closeButtonVisible = false;
myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));
}
或者:
gra.infoWindowRenderer=new ClassFactory(weatherInfoWin);
gra.symble=....;
- 大小: 29.7 KB
分享到:
相关推荐
这个文档是个PPT,描述REST在ARCGIS SERVER里的应用,并与SOAP服务比较,实例显示结果。
使用stm32f103系列驱动ags01db空气质量传感器,使用软件iic接口驱动完成,可测量tvoc,co2参数。
autodesk genuine service卸载工具,这是一款实用的ags强制卸载工具,主要针对Autodesk公司旗下产品autodesk genuine service无法清除问题而开发的,使用它用户可以轻松的强制卸载,支持Autodesk 2021所有版本
直接拷贝该文件到系统目录里: 1、Windows 95/98/Me系统,将adm_ags_x64.dll复制到C:\Windows\System目录下。 2、Windows NT/2000系统,将adm_ags_x64.dll复制到C:\WINNT\System32目录下。 3、Windows XP/WIN7/win10...
网络克隆多机一起装系统,省时省力高效益,快快下载吧
CDSN共享资源,免积分下载。
ags01db 驱动,树莓派,Linux
p21对人胃癌细胞株 AGS的 survivin及端粒相关基因表达水平的调控,窦丽芳,胡丽华,目的 研究人P21WAF基因对人胃癌细胞株AGS细胞survivin基因,以及htert、TRF1、TRF2和hPOT1等端粒相关基因表达水平的影响。...
Autoit-Gui-Skeleton(AGS) 阅读其他语言的文件:,提议提供一种架构和组织,以使用AutoIt有效地构建桌面应用程序Windows。 有关文档,请访问打包和设置部署AGS项目示例关于发行历史贡献执照 什么是AGS? AutoIt ...
AGS RuntimeSDK iOS v2.3.2
Adventure Game Studio(AGS)-是IDE和引擎,用于创建和运行冒险(又名“ quest”)类型的视频游戏。 尽管有其局限性,但它也有可能支持其他类型。 AGS最初由克里斯·琼斯(Chris Jones)于1999年创建,于2011年...
从JSF到AGS Java ADF
AGS TRS编辑器AGS(冒险游戏工作室)翻译文件的简单编辑器。 该项目是通过引导的。可用脚本在项目目录中,可以运行:npm start 在开发模式下运行应用程序。 打开在浏览器中查看它。 如果您进行编辑,则页面将重新...
com.esri.ags.controls This package contains the InfoWindow, Navigation and ScaleBar control classes. ...
asg-archives-rest-api AGS存档系统的REST API
AGS Runtime SDK iOS v10.2-u1 最近的Arcgis 的ios 开发包
ags_ISO9000培训手册.ppt
——This package contains the InfoWindow, Navigation and ScaleBar control classes. com.esri.ags.controls.infoClasses ——This package contains the InfoWindow and InfoSymbol supporting classes. ...
和泉 AGs型电气控制箱技术资料pdf,和泉 AGs型电气控制箱技术资料
目标是实现:根据查询语句实现图层信息查询 含有详细的代码和图文解释。