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.
Hashcurrently 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.URLSearchParamswould simplify the class a bit. It should be supported by all the browsers we care about.