In this map, I added a function that send the lat/lng for the point you clicked to a php program that calculates the info needed for a WMS GetFeatureInfo query. A WMS GetFeatureInfo query needs the bbox of the tile you are querying and the pixel distance to the point in that bbox. You can get the code for this php script here.
When you click on this map it is querying the shapefile that contains all USFS roadless areas. The window shows the bbox and pixel info that is sent to the WMS server and the information returned by the query. You'll notice that the query doesn't return anything if you don't click on the green roadless areas.
Here is the code for the map on this page:
