From: Hutchins, M. C. <Cha...@nr...> - 2012-01-12 17:47:08
|
Group, I am attempting to use WMSGetFeatureInfo with MapServer and there are two visible layers on my map. The desired function is that when someone clicks, it only queries the top most visible layer, but this is not happening. How do I make this happen? Also, where are the JavaDocs on the new BitBucket site? Here is my code, basically taken from the example: WMSGetFeatureInfoOptions foOptions = new WMSGetFeatureInfoOptions(); foOptions.setQueryVisible(true); foOptions.setDrillDown(false); WMSGetFeatureInfo foInfo = new WMSGetFeatureInfo(foOptions); foInfo.addGetFeatureListener(new GetFeatureInfoListener() { @Override public void onGetFeatureInfo(GetFeatureInfoEvent eventObject) { Window.alert(eventObject.getText()); } }); map.addControl(foInfo); Thanks! Chad Chad Hutchins Meteorologist Naval Research Laboratory Marine Meteorology Division |