[OpenLayers-Dev] Vector feature redrawing on map panning

Andreas Hocevar ahocevar at opengeo.org
Wed Jul 20 10:18:41 EDT 2011


Hi Martin,

as already commented on the ticket, we are waiting for a minimal
example from you that shows the issue. See
http://docs.openlayers.org/help/minimize.html for instructions.

Andreas.

On Mon, Jul 4, 2011 at 5:01 PM, Martin Saturka
<martin.saturka at sourcefabric.org> wrote:
> 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
> _______________________________________________
> 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