Skip to content

set data spam lag #6344

@user123259

Description

@user123259

good evening!
i am currently developing a map wrapper around maplibre. in my wrapper i have an option to draw a polygon, which sets data geojson type on every mouse move. i was using the latest version of v3 (3.6.2) and moved to the latest v5 version. i noticed that when i open dev tools the draw polygon is very laggy. i noticed that in 4.0.0-pre.1 that happens as well, and in a version before that (3.6.2) it worked fine. i was wondering what caused that, if its related to the mouse move or the setData botteneck that is created when spamming set Data, i put a throttle and it works fine but i was just wondering if it was some behavior change im suppose to tend to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions