晚风

博客园 首页 新随笔 联系 订阅 管理

2018年7月10日 #

摘要: 1、下载跨域jar包jetty-servlets.jar(下载geoserver使用的对应jetty版本——可以查看<Geoserver>\lib下jetty-servlet.jar的版本作为对照)并将jar包放到<Geoserver>\webapps\geoserver\WEB-INF\lib文件 阅读全文
posted @ 2018-07-10 13:40 晚风 阅读(556) 评论(0) 推荐(0) 编辑

2018年5月30日 #

摘要: 例如在别的地方有一个 apiProject,里面有 apiModule,你想要引用,而不是复制到现有项目,那么 1.现有项目的settings.gradle下 include ':apiModule' project(':apiModule').projectDir = new File(setti 阅读全文
posted @ 2018-05-30 00:55 晚风 阅读(1655) 评论(0) 推荐(0) 编辑

2015年7月2日 #

摘要: 目前环境1、ant的版本是1.9.42、jdk的版本是1.73、ionic安装版本是1.5.54、cordova版本是5.1.1经测试,虽然ionic上面写的支持的最低版本是android-16,但是我发布的时候最低支持android-17,android-16每次都 编译失败,不知道是不是环境的问... 阅读全文
posted @ 2015-07-02 06:39 晚风 阅读(310) 评论(0) 推荐(0) 编辑

2014年3月26日 #

摘要: 自定义的Openlayers.Popup.FreshCloud继承自Openlayers.Popup.Framed,实现了比较简洁的冒泡效果,详细代码如下/***Class:OpenLayers.Popup.FramedCloud**Inheritsfrom:*-*/OpenLayers.Popup.FreshCloud=OpenLayers.Class(OpenLayers.Popup.Framed,{/***Property:contentDisplayClass*{String}TheCSSclassofthepopupcontentdiv.*/contentDisplayClass:& 阅读全文
posted @ 2014-03-26 10:41 晚风 阅读(948) 评论(0) 推荐(0) 编辑

摘要: 使用的时候openscales 默认的冒泡效果确实有点简陋,想实现那种看着比较舒服的效果,只能自己定义了。参考现有的openscales实现的方式,它是通过控件的状态实现的,每个状态中使用Path绘制了一个形状,参考了一下网上的资料可以通过Fireworks绘制一个形状然后转换成路径,再导出成Fxg文件,打开文件就可以看到data的数据了。绘制的时候边缘一定不要留有空白,要不然在flex中就不容易控制位置了由于将箭头放在了正中间,所以只做了上、下两个方向的向上的CloudPopupTop.mxml 向下的CloudPopupBottom.mxml FxPopup文件修改如下将relative. 阅读全文
posted @ 2014-03-26 10:14 晚风 阅读(352) 评论(0) 推荐(0) 编辑

2013年10月30日 #

摘要: 当父级容器设置positon是absolute或relative,combobox显示的就会出现偏移,解决办法如下:添加这个样式.ajax__combobox_itemlist{ position:relative !important; top: 0px !important; left: 0px !important;} 阅读全文
posted @ 2013-10-30 10:01 晚风 阅读(281) 评论(0) 推荐(0) 编辑

2013年10月29日 #

摘要: 右对齐,换行显示的解决方法2010-8-26.news li{ position:relative; float:left; width:260px; //设定宽度}.news lispan { display:inline-block; }.news li span.lbl { width: 80px; text-align: right;}.news li span.date { width: 180px; text-align: left; position:absolute;//绝对定位,靠右 right:0;} 阅读全文
posted @ 2013-10-29 14:45 晚风 阅读(1011) 评论(0) 推荐(0) 编辑

2013年10月23日 #

摘要: /*事件监听*/protected function layerNameList_rendererAddHandler(e:RendererExistenceEvent):void{ var render:OverlayLayerItemRender=e.renderer as OverlayLayerItemRender; render.addEventListener("DelLayer",delLayer); } 阅读全文
posted @ 2013-10-23 10:29 晚风 阅读(327) 评论(0) 推荐(0) 编辑

2013年10月11日 #

摘要: //最小矩形(非透明最小区域)public static function getMinRect(target:BitmapData):Rectangle{return target.getColorBoundsRect(0xffffffff,0x00000000,false);}//去除多余透明区域public static function removeTransparentRect(target:BitmapData,minRect:Rectangle):BitmapData{if(minRect.left==0 && minRect.top==0){return tar 阅读全文
posted @ 2013-10-11 16:26 晚风 阅读(470) 评论(0) 推荐(0) 编辑

2013年7月4日 #

摘要: 项目中用到RouteTable,发布到IIS7中,访问之后没有任何反应,google半天终于找到了解决方法,就是要把iis的“HTTP重定向”功能打开 阅读全文
posted @ 2013-07-04 11:11 晚风 阅读(175) 评论(0) 推荐(0) 编辑