[OpenLayers-Dev] BUG: OpenLayers.LonLat.Lon - only with IE 6

Richard Thurbin richard at cloudamber.com
Wed Mar 14 17:20:14 EDT 2007


Sorry, I don't know if this is the right way to use this... I would like to
report a bug I have found when using the OpenLayers API.

I have searched the FAQ, Wiki engine, current tickets, Google and have not
found any reference to this.

Using the code taken from your very own tutorial...

//Stuff setting up the maps...

OpenLayers.Event.observe($('map'),"click",mapclicked.bindAsEventListener(map
)); 

function mapclicked(e){
	var lonlat = map.getLonLatFromPixel(e.xy);                
	var foo = lonlat.lon + "," + lonlat.lat;
};

//end

Works perfectly with IE7, Firefox 2.0.x but with IE 6.0.3790.1830 it has a
scripting error "Error 'lon' is null or not an object".

It is prevalent in OpenLayers version 2.3 (stable), 2.3 (Latest) and the
hosted version.

My customer uses IE6 and their IT department wont use FireFox due to
'security issues'. Ironic, I know but the customer is always right.

Anyway, can someone get back to me about this please? I can demonstrate this
if it would be helpful but it will involve giving out passwords to a secure
site. Please contact me on any of the channels below.

Regards,
Richard Thurbin    
Technical Director

Mobile: +44 7917 704 145
VOIP:   +44 8458 905 299
Fax:    +44 8700 518 913
Email:  richard.thurbin at cloudamber.com

Cloud Amber Research and Development
Amber House
Brockley Road
Elsworth
Cambridge
CB23 4JS
United Kingdom

http://www.cloudamber.com
http://www.carboncalculator.info
http://www.qbust.info 





More information about the Dev mailing list