News for hackers. Stuff that matters.
Re:Mapping Mountains by ryansouza on Tuesday March 22, 2016 @06:56PM (#11340612)
Neat!

Annoyingly it seems every time you scroll pass one of the maps a browser history entry is pushed

Re:Mapping Mountains by tantalor on Tuesday March 22, 2016 @10:50PM (#11341762)
They always keep 2 iframes loaded; when you scroll down (or up) the old iframes are unloaded by setting their src="" and the new ones are loaded by setting their src attribute to the correct URL (kept the "source" attribute of the iframe).

However, when you change the src attribute of an iframe, for some reason your browser creates a new history frame. I suppose so you can navigate inside of an iframe and go back/forward as expected.

The correct solution is to create/remove the entire iframe element instead of reassigning the src attribute.

See discussion at http://stackoverflow.com/questions/14737365/modify-iframe-sr...

You can see it in the HTML source of the page around the "check visibility every half-second, hide off-screen demos to go easy on the GPU" comment.

Re:Mapping Mountains by nether on Tuesday March 22, 2016 @09:26PM (#11341412)
oh the humanity
Re:Mapping Mountains by iamleppert on Tuesday March 22, 2016 @10:06PM (#11341605)
Super awesome writeup and use of leaflet, very pretty maps! I work for a drone company and we deal with DEM data all the time, I recognized your first image of the clamped PNG.

Here's one of our office: http://kespry-experiments.s3.amazonaws.com/elevation/valueFo...

Re:Mapping Mountains by tricolon on Tuesday March 22, 2016 @09:12PM (#11341357)
The author keeps referring to "Gak", with which I'm unfamiliar. Is it this? https://en.wikipedia.org/wiki/Nickelodeon_Toys#Gak Is it just because of the color?
Re:Mapping Mountains by majewsky on Wednesday March 23, 2016 @06:44AM (#11343309)
Yes, it's most certainly that. See also http://knowyourmeme.com/memes/events/gak
Re:Mapping Mountains by zachrose on Wednesday March 23, 2016 @09:02AM (#11343997)
But also the freeform sprawling shape that Gak was packaged in: https://i.ytimg.com/vi/MSDVImHZsFU/hqdefault.jpg
Re:Mapping Mountains by micro_cam on Tuesday March 22, 2016 @09:31PM (#11341443)
I'm really glad someone is producing a service like this and will start using it as soon as coverage is at least national!

I wrote a webapp hillmap.com that does client side slope shading for travel in avalanche terrain a few years ago using a usgs webservice that has since broken. I've looked into building a replacement but it is amazing how hard it is to find consistent elevation data across the globe.

Re:Mapping Mountains by outworlder on Wednesday March 23, 2016 @12:49AM (#11342227)
That's cool. It's amazing how much overlap there is with gamedev concepts.
Re:Mapping Mountains by davidw on Tuesday March 22, 2016 @06:51PM (#11340578)
It'd be cool if there were more maps you could play with on their site.
Re:Mapping Mountains by maaku on Tuesday March 22, 2016 @06:53PM (#11340593)
Back button breaks (Firefox).
Re:Mapping Mountains by EwanG on Tuesday March 22, 2016 @06:16PM (#11340363)
From the article: "Fly with me now, on a tour through the world of elevation data"

Basically a nice article talking about how the data is gathered, stored, and sometimes used.

Re:Mapping Mountains by dandermotj on Tuesday March 22, 2016 @06:53PM (#11340595)
The article has nothing to do with how the data is gathered, stored and sometimes used. It's about real-time rendering of elevation maps in the browser. It's really impressive work.
Re:Mapping Mountains by solipsism on Tuesday March 22, 2016 @06:59PM (#11340624)
How does a comment like this happen? Looking at your history, it looks like it's your habit to provide a short sumary of articles. That's helpful to people, but... only if you actually read the article.

Is this a good way to farm karma or something?