[OpenLayers-Dev] Vector feature redrawing on map panning

Martin Saturka martin.saturka at sourcefabric.org
Mon Jul 4 11:01:03 EDT 2011


Hi,
thanks it works nice (during panning) with the SVG2, just I have a
problem with 2.11rc1 with that.
When I zoom in then the vectors (i.e. their icons) are not shown. For
chrome it is just for the nearest view, for firefox3.5, it is for cca
1/4 of the zoom scale, both tested under Linux. Tried on Google v3 and
OSM maps, it is the same behavior.

Chrome does not complain about anything, Firefox sometimes says:
Permission denied to access property 'parentNode' from a non-chrome context
[Break on this error]
OpenLayers.Util.getXmlNodeValue=functi...OpenLayers.Util.DEFAULT_PRECISION=14;
OpenLayers.js (line 185)

http://trac.osgeo.org/openlayers/ticket/3401

M.

On Thu, Mar 24, 2011 at 11:55 AM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> the new OpenLayers.Renderer.SVG2 renderer does what you are requesting. It is available on trunk (and will be in 2.11). To use it, configure the renderers array for your OpenLayers.Layer.Vector like this:
>
> new OpenLayers.Layer.Vector("My Layer", {
>    renderers: ["SVG2", "VML", "Canvas"]
> });
>
> Or set it on the prototype:
>
> OpenLayers.Layer.Vector.renderers = ["SVG2", "VML", "Canvas"];

-- 
Martin Saturka
Software Engineer, Sourcefabric
www.sourcefabric.org


More information about the Dev mailing list