[OpenLayers-Dev] Bug in rendering features with cluster strategy

Ivan Grcic ivan.grcic at geofoto.hr
Sun Nov 2 15:36:49 EST 2008

Was trying to reproduce this on normal gml/wfs layer, but obviously
theres not such problem
because we are always dealing with fixed number of features. So, when
one zooms in while
 feature is selected that feature is also rendered on next zoom,
because it exist on all zoom levels....

In cluster strategy number of feature changes when we zoom...so the
feature that is currently selected
 doesnt exist on next zoom anymore...thus it shouldnt be rendered next
time... any hints how to solve this quickly?



On Sun, Nov 2, 2008 at 9:20 PM, Ivan Grcic <ivan.grcic at geofoto.hr> wrote:
> Hi list,
> i discovered a bug while developing my OL application, in cluster
> strategy class.
> Bug occurs when you hover over one feature that represent a cluster
> (or externalGraphic or like in cluster example - vector circle
> http://openlayers.org/dev/examples/strategy-cluster.html)
> When you zoom in/out while that feature-cluster is selected (by
> quickly double-clicking or easier using scroll on ur mouse), on next
> zoom that cluster is rendered (stays on screen) together with newly
> created clusters! And clearly it shouldnt be there. The old
> ("phantom") cluster is not selectable, as he doesnt exist on the new
> zoom level..he just stays there on screen...annoying me :)
> As you zoom in again and again, phantom clusters always render, always
> at the same position in the map div...
> Please confirm that this is a bug, im going crazy here with this one :|
> --
> Ivan Grcic

Ivan Grcic

igrcic at gmail.com
Mobile (CRO): +385 98 576 457

More information about the Dev mailing list