[OpenLayers-Dev] Issue - vector feature following map center on map move

Andreas Hocevar ahocevar at opengeo.org
Fri Jun 15 06:58:36 PDT 2012


This issue is because vector renderers create a viewport that matches
the current map viewport (with a default ratio of 1), and this is not
updated during dragging. What you can try is configure your vector
layer with

ratio: 3

This should give you a renderer viewport big enough to pan from one
end of the map to the other without running into this issue.

Andreas.

On Fri, Jun 15, 2012 at 2:36 PM, Alexandre Dube <adube at mapgears.com> wrote:
> Hi,
>
>  Does anyone have an idea for solving or working around this issue ?
>
> Regards,
>
> Alexandre
>
>
>
> On 12-06-08 10:21 AM, Alexandre Dube wrote:
>>
>> You're right, it's not an SVG issue.  The issue is the same with [Canvas].
>>  I tested in IE (VML) and the feature disappears when it hits the edge.
>>
>> Do you know if there could be quick way to work around the issue ?
>>
>> [Canvas]
>> http://dev8.mapgears.com/openlayers/2.12-rc6/examples/ad-vector-issue-map-move.html?renderer=Canvas
>>
>
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
> _______________________________________________
> 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