Re:A day without JavaScript
by oneeyedpigeon on Wednesday June 07, 2017 @09:20AM
(#14506143)
There should be something as a fallback, though, surely? Take out all the functionality, by all means, but at least give me a map image. If you can't even get link-to-zoom working to display different images, just give me a map image based on my IP location; give me anything rather than nothing.
[ Parent
| on HN ]
Even if you could just put in two addresses and get directions, that would be better than nothing.
Remember the HTML map tag? [1]. There is a huge amount they could do to make maps usable without JS (or even CSS). Zooming and panning would be pretty easy to implement, but would involve reloading the page with new coords.
1. https://developer.mozilla.org/en/docs/Web/HTML/Element/map
Can you do lazy loading with just HTML and CSS? You can load the map around the GPS coordinates you start on, but what if you go 20 miles north? How do you: A) figure out what are the new GPS coordinates that your viewport is looking at? And B) load the map within the viewport centered around the new GPS coordinates that you're looking at without ajax?
Re:A day without JavaScript
by Liquid_Fire on Wednesday June 07, 2017 @10:33AM
(#14506730)
How would you "go 20 miles north" without JavaScript? The only sensible way would be by clicking a link, at which point you can load your new tiles.
I think OpenLayers did this a looooooong time ago.
Re:A day without JavaScript
by marcosdumay on Wednesday June 07, 2017 @01:42PM
(#14508335)
Google maps did this a looooooong time ago.