[OpenLayers-Dev] SVG render in IE9

Andreas Hocevar ahocevar at opengeo.org
Tue Aug 2 06:25:03 EDT 2011


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.



More information about the Dev mailing list