You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be achieved using custom implementation of getFeatureInfo function:
L.WMS.Source.MySource=L.WMS.Source.extend({'getFeatureInfo': function(point,latlng,layers,callback){// It can be passed somehow, using options object, for examplevargetFeatureInfoUrl='http://....';varparams=this.getFeatureInfoParams(point,layers),url=getFeatureInfoUrl+L.Util.getParamString(params,getFeatureInfoUrl);this.showWaiting();this.ajax(url,done);functiondone(result){this.hideWaiting();vartext=this.parseFeatureInfo(result,url);callback.call(this,latlng,text);}}});
So In my setup I have a GeoServer setup to provide WMS.
When I provide my source I generally want to source the cached tiles using the GeoWebCache url for GeoServer (eg. http://myserver.com/geoserver/gwc/service/wms)
However, GeoServer does not provide GetFeatureInfo capability at that url. Instead you have to use the standard wms url (which is not cached).
So could we add a parameter to the GetFeatureInfo to provide an optional url which the GetFeatureInfo would use rather than the base source url?
Thanks.
The text was updated successfully, but these errors were encountered: