[OpenLayers-Dev] SVG render in IE9

Denis Rykov rykovd at gmail.com
Tue Aug 2 06:34:48 EDT 2011


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

On Tue, Aug 2, 2011 at 5:25 PM, Andreas Hocevar <ahocevar at 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
> > Dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110802/87fe9b15/attachment.html


More information about the Dev mailing list