Ticket #622 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

WFS layer should remove vectors when redrawing

Reported by: crschmidt Owned by:
Priority: minor Milestone: 2.4 Release
Component: general Version:
Keywords: Cc:
State:

Description

The vector layer currently clears the renderer, but does not clear its internal feature list, so as you zoom in and out, it will continue to draw copies of the features over and over.

Attachments

622.patch Download (1.0 KB) - added by sderle 6 years ago.
add Vector.destroyFeatures() and call it from WFS.moveTo()
622.2.patch Download (2.3 KB) - added by sderle 6 years ago.
add Vector.destroyFeatures() and call it from WFS.moveTo(), plus tests

Change History

Changed 6 years ago by sderle

add Vector.destroyFeatures() and call it from WFS.moveTo()

Changed 6 years ago by sderle

  • keywords review added

I think this will fix the problem... but it needs tests.

Changed 6 years ago by crschmidt

This won't work because destroy() removes the item from the array. So the loop won't work. I think. Doing the reverse for loop trick should work.

Changed 6 years ago by sderle

add Vector.destroyFeatures() and call it from WFS.moveTo(), plus tests

Changed 6 years ago by sderle

take two, including tests

Changed 6 years ago by crschmidt

  • keywords commit added; review removed

Looks good. Do it to truett.

Changed 6 years ago by sderle

  • status changed from new to closed
  • resolution set to fixed

Changed 6 years ago by euzuro

  • keywords commit removed
Note: See TracTickets for help on using tickets.