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.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users