Skip to content

Improve highlighting performance in zoomToFeatures(). #51

@ddjnw1yu

Description

@ddjnw1yu

Although I understand how this can be used, I wonder about the rationale behind it, and the need for the caller to incrementally expand the selected features by passing in a bounding box, presumably returned from the previous call to zoomToFeatures().

If you are looking to improve performance by not unselecting and then reselecting previously selected features, then what about a new option called say selection, with values of clear (the default), expand (the current selected feature set is enlarged), and contract (the current selected feature set is shrunk)? Then the external client doesn't have to concern itself with internal representation.

Please raise an issue if you agree that this is better approach that will meet your needs -- it's straightforward for me to implement.

Originally posted by @dbrnz in #50 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions