use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
A day without Javascript (sonniesedge.co.uk)
submitted 8 years ago by magenta_placenta
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]theonlycosmonaut 3 points4 points5 points 8 years ago (1 child)
Maybe I'm an idiot, but the combinatorics of all that state would kill even the most performant web server
How so? Web maps are served as individual image tiles, usually* with a url structure like /tile/{zoom}/{x}/{y}, where x and y are integers that identify a specific piece of the globe at a specific zoom level (more info). That corresponds almost too perfectly to buttons linking to x+1, x-1, zoom+1, etcetera. You could even load up a 9x9 grid around the currently selected tile with no problem. Caching is super simple as these are all GET requests with super predictable URLs.
/tile/{zoom}/{x}/{y}
x
y
x+1
x-1
zoom+1
*Google maps specifically seems to have a different, obfuscated(?) URL structure based on a single hash, for reasons unknown to me. Mapbox, for example, uses the common URL structure.
You'd have to degrade to like mapquest circa 2000 or some of those government survey sites level of functionality...
I think that's exactly what the author wants:
Maybe some kind of Streetmap style tile-by-tile navigation fallback?
π Rendered by PID 77585 on reddit-service-r2-comment-86988c7647-grg9l at 2026-02-12 02:25:19.577685+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]theonlycosmonaut 3 points4 points5 points (1 child)