From: triton <tri...@gm...> - 2012-03-29 17:34:25
|
Using the example from above the change would be something like from: X: event.xy.x, Y: event.xy.y, to: X: Math.round(event.xy.x), Y: Math.round(event.xy.y), or in my case the change was from: map.events.register('click', map, function (e) { var url = wmsurl + "?REQUEST=GetFeatureInfo" + "&EXCEPTIONS=application/vnd.ogc.se_xml" + "&BBOX=" + map.getExtent().toBBOX() + "&X=" + e.xy.x + "&Y=" + e.xy.y + "&INFO_FORMAT=text/html" etc. etc. to: map.events.register('click', map, function (e) { var url = wmsurl + "?REQUEST=GetFeatureInfo" + "&EXCEPTIONS=application/vnd.ogc.se_xml" + "&BBOX=" + map.getExtent().toBBOX() + "&X=" + Math.round(e.xy.x) + "&Y=" + Math.round(e.xy.y) + "&INFO_FORMAT=text/html" etc. etc. Fixed the problem for me. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetFeatureInfo-request-returns-X-and-Y-incorrectly-specified-error-tp3787088p4668553.html Sent from the GeoServer - User mailing list archive at Nabble.com. |