Vos commentaires
Unfortunately this doesn't appear to work with my 2.0.6 install for some reason. I've added the uniview.js link in index.html, and have edited uvTray.js as suggested by Mikael's post. However none of my buttons work. Also the the browser is stuck on the default tab ("1. Flood Layers"), and I cannot switch to the other three tabs ("2.Precipitation," etc.).
Here are my browser files de_coflood.zip.
In our Digital Earth presentations, we have a lot of flight very close to the surface of the Earth. We like to have the cardinal points marker on, because it is easy for audiences as well as speaker and navigator get disoriented in unfamiliar terrain.
Even for star talks, I tend not to use Sky mode, since the virtual horizon is not horizontal in our tilted dome. And when you move the camera over the surface of the Earth to change latitude or longitude in Sky mode, the surface of the Earth is not visible. The audience doesn't have that additional cue to show that they are moving.
And to demonstrate how migrating birds navigate, it's useful for the audience to be able to see the ground that the birds are flying over. This is actually a great example of an early interdisciplinary use of a planetarium. Researchers determined that some birds look for the rise and set motions of stars in the sky over the course of the night, and use that information to head north or south, depending on the season. These discoveries were made with experiments using birds in cages in planetariums in the 1970s (!), and I've used Uniview to show these results for an ornithology class in the past.
I prefer the Earth navigation in Orbit mode over that in the Surface mode. For the former, I can smoothly mimic airplane-like flight with LMB and Ctrl+CMB. With practice, I get excellent looking flights through valleys or past mountain ranges, or pivoting around a mountain peak. In my limited experience with Sky mode however, Shift+LMB (interspersed with awkward shifts to using Ctrl+CMB) results in far clunkier motions.
But regardless of whether you prefer Orbit or Surface modes, the grids and markers should appear in both in addition to the Sky mode. (Obviously the grids would have to fade in and out in Orbit mode depending on distance from the Earth, the same way they did in 1.5.)
Actually if you delete a layer and add a new layer immediately, the new layer will have the layer number of the just deleted layer in the Geoscope numbering.
At least that's how I've been able to update layersets without going crazy by having to rebuild a layerset from the ground up anytime something changes. It helps to keep track of your layersets in a separate document, like a spreadsheet, so you can keep track of what is happening as you add and delete layers. And also double-check gui.statemanager periodically to see make sure what you've added jibes with you think you've added. (I've been working with layersets containing anywhere from 20 to 70 layers, so I really don't want to re-create anything from scratch.)
Also if you are making a new layerset, start Uniview fresh. If you replace an existing layerset in Geoscope by using the Layerset->New... menu item, the memory structures for the previous layerset will remain. If you save out the layers in a new layerset file, you will retain extraneous memory elements, if the previous layerset had more layers than the new one you are saving out. This isn't a huge problem, but can make searching through layer properties in gui.statemanager a bigger hassle than it should be.
That should work as a temporary fix. Thanks!
Service d'assistance aux clients par UserEcho
However now I've noticed other code that is unresponsive. Any ideas why this function:
function toggle_layer(layer_number) {or this:"use strict";
var ele = document.getElementById("toggleToggleLayer");
var text = document.getElementById("displayToggleLayer");
if(ele.style.display == "block") {
uniview.sendEvent("Earth_layerdata.prop.Layer" + layer_number + "_Enabled 0");
ele.style.display = "none";
}
else {
uniview.sendEvent("Earth_layerdata.prop.Layer" + layer_number + "_Enabled 1");
ele.style.display = "block";
}
}
function toggle_landsat7() {would no longer work?"use strict";
var ele = document.getElementById("toggleLandsat7");
var text = document.getElementById("displayLandsat7");
if(ele.style.display == "block") { uniview.sendEvent("Earth_layerdata.prop.Layer1_Enabled 0");
ele.style.display = "none"; text.innerHTML = "<img width=48 src='pix/off.jpg'>";
}
else { uniview.sendEvent("Earth_layerdata.prop.Layer1_Enabled 1");
ele.style.display = "block"; text.innerHTML = "<img width=48 src='pix/on.jpg'>"; } }