Hacker News new | ask | show | jobs
by pcmill 1015 days ago
Just a heads up but the super resolution example absolutely spams the history API in your browser if you move the map slightly. You could add a bit of delay before trying to save the new location in the URL.
3 comments

They need to learn when to use history.pushState vs history.replaceState
Or, how about not saving the location in the URL at all when moving the map? I guess there must be a reason why none of the mainstream map webapps does something like this...
It allows you to copy and paste the url to link someone to what you're seeing. It's a good thing if sone right.

Also, google maps changes the url as you pan and zoom.

Others do this too, just using replaceState.
it tracks everything you do while interacting with it -- FEATURE?
Thanks for pointing this out! We will look into fixing it.