Extjs 如何从gwc访问wms层

Extjs 如何从gwc访问wms层,extjs,openlayers,geoserver,Extjs,Openlayers,Geoserver,我正在使用openlayers、geoserver和Extjs,如何从geoserver的geowebcache正确访问wms层。现在我正在使用这个代码 map.addLayer( new OpenLayers.Layer.WMS( "trivandrum","http://localhost:8080/geoserver/gwc/service/wms",{ srs:"EPSG:4030",

我正在使用openlayers、geoserver和Extjs,如何从geoserver的geowebcache正确访问wms层。现在我正在使用这个代码

                               map.addLayer(
     new OpenLayers.Layer.WMS(
"trivandrum","http://localhost:8080/geoserver/gwc/service/wms",{
                srs:"EPSG:4030",
                LAYERS:'tvm_road_colony',
                Format:'image/png',
                transparent:true,
                tiled: true

            },
            {
                buffer: 0,
                displayOutsideMaxExtent:true,
                visibility: true,

                isBaseLayer: true
            } 
        )
);

        here I have got wms layer but when i try to zoom i did'nt get the layer completely how can i solve this problem? please help 

您通过geowebcache访问WMS的方法是正确的。 尝试转到
http://localhost:8080/geoserver/gwc/demo
,查看是否可以从那里查看图层演示

还有几件事需要注意 -使用SRS 4030-确保在geowebcache.xml中正确配置了SRS 4030,因为geoserver/geowebcache不会自动检测4386和900913以外的SRS

如果这不能解决问题,你会得到粉红色的屏幕吗?获取屏幕截图以查看输出的外观也会很有帮助