在过去的几天里,我一直在尝试从Geoserver获取我的地图GeoWebCache层,以便在弹出事件中显示GetFeatureInfo。当我使用WMS层时,GetFeatureInfo可以按要求工作。自从我开始使用GeoWebCache缓存我的层,我就不能GetFeatureInfo了。到目前为止,我认为我应该代理我的WMS服务器,但老实说,我真的不知道该怎么做。如果有人知道什么或有什么建议,我将非常感谢,并感谢您抽出时间来帮助我。
elshae
发布于 2010-11-02 02:36:44
最后,我在这里偶然发现:
http://getsatisfaction.com/opengeo/topics/error_in_wmsgetfeatureinfo#reply_2612983
new OpenLayers.Control.WMSGetFeatureInfo({
url: "http://localhost:8080/geoserver/wms",
layerUrls: ["http://localhost:8080/geoserver/gwc/service/wms"],
title: 'Identify features by clicking',
queryVisible: true
});原来我错过的是layerUrls: ["http://localhost:8080/geoserver/gwc/service/wms"]
这意味着:考虑layerUrls (即您的gwc ),但向url (即您的wms )发出请求。
elshae
https://stackoverflow.com/questions/4055196
复制相似问题