Hi list I created a really small OpenLayer application.
In Firefox it is working flawlessly, even Firebug isnt aware of errors.
In Internet Expolorer I get the following error message without any image
displayed:
"Line: 537"
"Char: 204"
"Error: 'undefined' is null or not an object"
"Code: 0"
I am using this code:
var map;
function init(){
map = new OpenLayers.Map ("map", {
controls:[
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.MousePosition(),
new OpenLayers.Control.ScaleLine(),
],
numZoomLevels: 5,
maxExtent: new OpenLayers.Bounds(57500, 57500, 106600,
101800),
maxResolution: 'auto',
units: 'm',
projection: new OpenLayers.Projection("EPSG:2169")
} );
layer1 = new OpenLayers.Layer.Image(
'LAN1','/lan_output/schedule_baseline_normal_weather/schedule_baseline_normal_weather_L_den.png',
new OpenLayers.Bounds(57500, 57500,
106600, 101800),
//new OpenLayers.Projection("EPSG:2169"),
new OpenLayers.Size(491,443)
);
layer2 = new OpenLayers.Layer.Image(
'LAN2','/lan_output/schedule_baseline_normal_weather/schedule_baseline_normal_weather_L_day.png',
new OpenLayers.Bounds(57500, 57500,
106600, 101800),
//new OpenLayers.Projection("EPSG:2169"),
new OpenLayers.Size(491,443), {
isBaseLayer: false}
);
roads = new OpenLayers.Layer.Image(
'roads','/lan_output/roads.png',
new OpenLayers.Bounds(57500, 57500,
106600, 101800),
//new OpenLayers.Projection("EPSG:2169"),
new OpenLayers.Size(491,443), {
isBaseLayer: false}
);
/*
gml_roads = new OpenLayers.Layer.GML(
'Roadnetwork',
'/lan_output/roadnetwork.gml',
new OpenLayers.Bounds(57500, 57500,
106600, 101800),
{isBaseLayer: false}
);
*/
map.addLayers([layer1, layer2, roads]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
Any ideas?
Thanks in advance,
Christian
_________________________________________
Dipl. Geogr. Christian Braun
Tel: +352- 425991-608
Mobil: +49-179-6845896
Mail: [EMAIL PROTECTED]
Resource Centre for Environmental Technologies,
Public Research Centre Henri Tudor,
Technoport Schlassgoart,
66 rue de Luxembourg,
P.O. BOX 144,
L-4002 Esch-sur-Alzette, Luxembourg_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users