以下是我的源代码。当我在wms中添加一个图层时,它可以很好地工作,但是当我过滤wms数据时,我的wms图层数据在地图上是不可见的。如果有人知道我正在做什么来从geoserver获取数据
,请帮忙> tiled = new OpenLayers.Layer.WMS(
> "Tiled",
> "http://apq.rsip.com:8080/geoserver/test/wms",
> {
> map: 'http://apq.rsip.com:8080/geoserver/test/wms',
> transparent: 'TRUE',
> layers: 'test:TABLEPOLY',
> transparent: 'true',
> projection: 'EPSG:4326'
> }
> );
>
>
> var LINE = new OpenLayers.Layer.WMS(
> "Tiled",
> "http://apq.rsip.com:8080/geoserver/test/wms",
> {
> map: 'http:/apq.rsip.com:8080/geoserver/test/wms',
> transparent: 'TRUE',
> layers: 'test:TABLELINE',
> transparent: 'true',
> projection: 'EPSG:4326'
> }
> ); map.addLayers([osm, tiled]);
> tiled.mergeNewParams({'CQL_FILTER': "Time_UID LIKE '20150709%2A' "});
> tiled.redraw();