<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hello</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>I have a map with 2 layers. The base layer is an XYZ layer and a vector 
layer for the features.</DIV>
<DIV></DIV>
<DIV>This is the constuctor of the vector layer:</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>var renderer = 
OpenLayers.Util.getParameters(window.location.href).renderer;</DIV>
<DIV>renderer = (renderer) ? [renderer] : 
OpenLayers.Layer.Vector.prototype.renderers; </DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>markers = new OpenLayers.Layer.Vector("Markers",</DIV>
<DIV>    {</DIV>
<DIV>        styleMap: new 
OpenLayers.StyleMap({</DIV>
<DIV>            
externalGraphic: '@Url.Content("~/Images/Icons/Optical.png")',</DIV>
<DIV>            
graphicOpacity: 1.0,</DIV>
<DIV>            
graphicWidth: 30,</DIV>
<DIV>            
graphicHeight: 30,</DIV>
<DIV>            
graphicYOffset: -15,</DIV>
<DIV>            
graphicXOffset: -15</DIV>
<DIV>        }),</DIV>
<DIV>        renderOptions: { yOrdering: true 
},</DIV>
<DIV>        renderers: renderer</DIV>
<DIV>    }</DIV>
<DIV>);</DIV>
<DIV>map.addLayer(markers);</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>After I add a feature it won’t draw on the map. I get this error: <SPAN 
class="objectBox objectBox-errorMessage hasBreakSwitch " role=presentation><SPAN 
class="errorMessage ">feature.geometry.getBounds is not a 
function</SPAN></SPAN></DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage hasBreakSwitch " 
role=presentation><SPAN class="errorMessage ">The error occures in the 
drawFeature function.</SPAN></SPAN></DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage hasBreakSwitch " 
role=presentation><SPAN class="errorMessage "></SPAN></SPAN> </DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage hasBreakSwitch " 
role=presentation><SPAN class="errorMessage "></SPAN></SPAN></DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage hasBreakSwitch " 
role=presentation><SPAN class="errorMessage ">How can I solve 
it?</SPAN></SPAN></DIV></DIV></DIV></BODY></HTML>