arcgis for flex infowindow样式自定义
2014-08-26 11:45
447 查看
标题的样式
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);把这几句注销掉就可以设置样式了。
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);把这几句注销掉就可以设置样式了。
相关文章推荐
- ArcGIS for Java_Flex实现自定义的Toc控件
- 自定义ArcGIS API for Flex 地图提示窗体
- flex for arcgis 调用访问 自定义瓦片格式--标准切片、 google切片、arcgis切片
- flex+ArcGIS修改InfoWindow的样式
- ArcGIS API for Flex(六)加载自定义Web平铺图层
- arcgis for js 修改infowindow样式的方法
- arcgis api for javascript (2) 获取属性字段及自定义graphic样式
- arcgis server for flex 编程时设置mxd文档中图层为自定义符号时flex程序不做相应改变的bug
- Arcgis api for flex项目实例—美工篇(1):样式与布局
- arcgis api for flex之五、flex对java自定义对象转换详解
- Arcgis Server for JavaScript API之自定义InfoWindow
- ArcGis server api for flex widget的 理解--自定义组件。
- 自定义ArcGIS API for Flex 地图提示窗体
- Arcgis for javascript不同的状态下自定义鼠标样式
- arcgis api for js共享干货系列之二自定义Navigation控件样式风格
- arcgis api for js共享干货系列之二自定义Navigation控件样式风格
- Arcgis for javascript不同的状态下自定义鼠标样式
- Arcgis api for flex项目实例—开发篇(6):自己的infowindow
- 【代码】ArcGIS For Flex 由地理坐标转换成自定义投影坐标系统参考
- ArcGIS Viewer for Flex(浏览器的样式) .(转帖)