arcgis for flex infowindow样式自定义

来源:互联网 发布:淘宝返利网最高返36 编辑:程序博客网 时间:2024/06/06 05:52


标题的样式

esri|InfoWindowLabel 

 color: white; 
 font-size: 20;
 fontFamily:微软雅黑;

paddingTop:5;
 paddingLeft:5;

主窗体样式
esri|InfoWindow 

  background-color: green;
 border-thickness: 0; 
 upper-left-radius: 10;  左上角圆角大小
 upper-right-radius: 10;  右上角圆角大小
 info-placement: right;     信息显示位置(箭头的方向,分别可以用left ,right,top,bottom)          
}

 如果用的是flex view的框架,可能有些样式定义无效,比如InfoWindowLabel 的字体大小和字体样式, border-thickness。这是因为view框架已经为我们定义好了,具体代码在UIManager.as类里面的

cssStyleDeclarationInfoWindowLabel.setStyle("fontSize", fontSize);cssStyleDeclarationInfoWindowLabel.setStyle("fontFamily", fontName);cssStyleDeclarationInfoContainer.setStyle("borderThickness", 1);把这几句注销掉就可以设置样式了。


0 0
原创粉丝点击