WMS GetFeatureInfo control should use integers for X and Y, r=ahocevar (closes #3019)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11046 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -370,13 +370,13 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
|
||||
}, (parseFloat(firstLayer.params.VERSION) >= 1.3) ?
|
||||
{
|
||||
crs: projection,
|
||||
i: clickPosition.x,
|
||||
j: clickPosition.y
|
||||
i: parseInt(clickPosition.x),
|
||||
j: parseInt(clickPosition.y)
|
||||
} :
|
||||
{
|
||||
srs: projection,
|
||||
x: clickPosition.x,
|
||||
y: clickPosition.y
|
||||
x: parseInt(clickPosition.x),
|
||||
y: parseInt(clickPosition.y)
|
||||
}
|
||||
);
|
||||
OpenLayers.Util.applyDefaults(params, this.vendorParams);
|
||||
|
||||
Reference in New Issue
Block a user