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.
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.
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 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.
Annoyingly it seems every time you scroll pass one of the maps a browser history entry is pushed
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.
Here's one of our office: http://kespry-experiments.s3.amazonaws.com/elevation/valueFo...
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.
Basically a nice article talking about how the data is gathered, stored, and sometimes used.
Is this a good way to farm karma or something?