Skip to content

zoomToLayer on TemplatedFeatureLayer causes feature duplication #634

Closed
@ahmadayubi

Description

@ahmadayubi
2021-12-14.10-25-31.mp4

It also seems to only happen when the current zoom level is greater than the layers zoom level.

@prushforth Turns out the reason it needed multiple tab presses is because the features are duplicated in the DOM. The bug is related to zoomToLayer in combination with TemplatedFeaturesLayer, where the _pullFeatureFeed is called twice (through the moveend handler) instead of once, not sure why yet.

Originally posted by @ahmadayubi in #596 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions