[OpenLayers-Users] xy.x is null on explorer

Simo D simone.dalmasso at gmail.com
Wed Sep 24 08:56:12 EDT 2008


Hi, I'm trying to do getFeatureInfo on a layer but in Internet explorer i get
the "xy.x is null or is not an object" error. In other browser it works
fine. The syntax is:

getBoundary: function(e){
		
		$('info').update('Loading...');
		var url =  map.layers[0].getFullRequestString(
			{
				REQUEST: "GetFeatureInfo",
				EXCEPTIONS: "application/vnd.ogc.se_xml",
				BBOX: map.getExtent().toBBOX(),
				X: e.xy.x,
				Y: e.xy.y,
				INFO_FORMAT: 'text/plain',
				QUERY_LAYERS: map.layers[0].params.LAYERS,
				FEATURE_COUNT: 50,
				srs: 'EPSG:4326',
				layers: 'ithacatest:bndpola' ,
				styles: '',
				WIDTH: map.size.w,
				HEIGHT: map.size.h
			},
			"http://localhost/geoserver/wms"
			);
			OpenLayers.loadURL(url, '', this, setResponse, setResponse);
			OpenLayers.Event.stop(e);

Can anyone help me?
Thanks a lot.

Simone
-- 
View this message in context: http://www.nabble.com/xy.x-is-null-on-explorer-tp19648164p19648164.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list