On Aug 2, 2011, at 12:34 , Denis Rykov wrote:

> Thanks, it works! Could you give a little explanation why it occurs?

IE9 only provides reliable SVG support if that doctype is set. It has to do 
with the fact that IE tries to maintain compatibility with older IE versions, 
based on the doctype (and other settings in the document's head).

Andreas.

> 
> On Tue, Aug 2, 2011 at 5:25 PM, Andreas Hocevar <ahoce...@opengeo.org> wrote:
> Hi,
> 
> make sure to set the doctype properly in your HTML document:
> 
> <!DOCTYPE html>
> 
> Andreas.
> 
> On Aug 2, 2011, at 12:23 , Denis Rykov wrote:
> 
> > Try to use SVG render with IE9 and get an error: "Your browser does not 
> > support vector rendering".
> > OpenLayers breaks on 558 line of addFeatures method in Vector.js file: 
> > "this.renderer.locked = true;" - is null or undefined.
> > The way I use for adding layer:
> >     var geojson_format = new OpenLayers.Format.GeoJSON();
> >     map_vector_layer = new OpenLayers.Layer.Vector("", {styleMap: sm, 
> > rendererOptions: {zIndexing: true}});
> >     map.addLayer(map_vector_layer);
> >     map_vector_layer.addFeatures(geojson_format.read(regions));
> > _______________________________________________
> > Dev mailing list
> > d...@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-dev
> 
> 
> 
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
> 
> 
> _______________________________________________
> Dev mailing list
> d...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Dev mailing list
d...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to