Skip to content

Refactor Hash to use URLSearchParams #7006

@1ec5

Description

@1ec5

Hash currently does a lot of manual string building and parsing. This makes it tricky for clients to extend the class to support, say, other hash parameters that might need to coexist with the ones managed by MapLibre. URLSearchParams would simplify the class a bit. It should be supported by all the browsers we care about.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions