<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=Windows-1252 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16430"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT size=2 face=Arial>Hello OpenLayers-Users!</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I have some trouble with displaying&nbsp;a 
vector-layer on a map in Internet Explorer. In Chrome and Firefox, it works 
without problems but in IE, there is nothing to see except the 
OSM-map.</FONT></DIV>
<DIV><FONT size=2 face=Arial>The Layer-Switcher shows my map as well as the 
vector-layer, but as i said there is nothing to see except the map.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I found out, that some people had issues similar to 
this and the problem was, that the code for the vector-layer or whatever was 
processed too early, so they just needed to wait until body onload.</FONT></DIV>
<DIV><FONT size=2 face=Arial>But this seems to be&nbsp;NOT my problem, since 
I&nbsp;call my createMap()-function in init(), which is called on 
body-onload.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>IE is not giving me any error, so i also don't know 
where to start. It's really annoying and I would be so glad, if you would have 
any hints for me.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Here's my code, let me know if you need 
more.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">function 
createMap(kmlDoc){</FONT></DIV>
<DIV><FONT face="Bitstream Vera Sans Mono"></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp;map = new 
OpenLayers.Map({<BR>&nbsp;&nbsp;div: "map",<BR>&nbsp;&nbsp;allOverlays: 
true<BR>&nbsp;});<BR>&nbsp;var osm = new OpenLayers.Layer.OSM();</FONT></DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp;map.addControl(new 
OpenLayers.Control.LayerSwitcher());<BR>&nbsp;map.addControl(new 
OpenLayers.Control.MousePosition());<BR>&nbsp;</FONT></DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp;var defaultStyle = new 
OpenLayers.Style({<BR>&nbsp;&nbsp;pointRadius: 4,</FONT></DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp;&nbsp;fillColor: 
"#ffcc66",<BR>&nbsp;&nbsp;strokeColor: "#ff9933",<BR>&nbsp;&nbsp;strokeWidth: 
1,<BR>&nbsp;&nbsp;graphicZIndex: 1<BR>&nbsp;});&nbsp;<BR>&nbsp;var selectStyle = 
new OpenLayers.Style({<BR>&nbsp;&nbsp;pointRadius: 6,<BR>&nbsp;&nbsp;fillColor: 
"#66ccff",<BR>&nbsp;&nbsp;strokeColor: "#3399ff",<BR>&nbsp;&nbsp;graphicZIndex: 
2<BR>&nbsp;});&nbsp;<BR>&nbsp;var myStyles = new 
OpenLayers.StyleMap({<BR>&nbsp;&nbsp;"default": 
defaultStyle,<BR>&nbsp;&nbsp;"select": 
selectStyle<BR>&nbsp;});<BR>&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp;var features = 
createMapFeatures(kmlDoc);</FONT></DIV>
<DIV><FONT face="Bitstream Vera Sans Mono"></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp;var machineLayer = new 
OpenLayers.Layer.Vector("Points", {<BR>&nbsp;&nbsp;styleMap: 
myStyles,<BR>&nbsp;&nbsp;rendererOptions: {zIndexing: 
true}<BR>&nbsp;});<BR>&nbsp;machineLayer.addFeatures(features);<BR>&nbsp;<BR>&nbsp;map.addLayers([osm, 
machineLayer]);</FONT></DIV>
<DIV><FONT face="Bitstream Vera Sans Mono"></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp;select = new 
OpenLayers.Control.SelectFeature(machineLayer);<BR>&nbsp;machineLayer.events.on({<BR>&nbsp;&nbsp;"featureselected": 
onFeatureSelect,<BR>&nbsp;&nbsp;"featureunselected": 
onFeatureUnselect<BR>&nbsp;});<BR>&nbsp;map.addControl(select);<BR>&nbsp;select.activate();&nbsp;</FONT></DIV>
<DIV><FONT size=2 face="Bitstream Vera Sans Mono">&nbsp; </FONT></DIV>
<DIV><FONT face="Bitstream Vera Sans Mono"><FONT size=2>&nbsp;suisseBounds = new 
OpenLayers.Bounds(662556, 5751427, 1171817, 6076781);</FONT></FONT></DIV>
<DIV><FONT size=2 
face="Bitstream Vera Sans Mono">&nbsp;map.zoomToExtent(suisseBounds, 
false);<BR>}<BR></FONT></DIV></BODY></HTML>