Using Screen Overlays in the Google Code Playground
Playing with the Google Earth Screen Overlay in the code playground is – as with any API - the best way to get to grips with it.
For instance, you could alter the following entry:
// add some layers ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true); ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true);
By changing the LAYER_ROADS value from true to false. If you then click on Run Code, and zoom in to a place where you would normally expect to find major roads signposted, you’ll find that this layer has been deactivated.
Similarly, you can change the createScreenOverlay function value to display a different image than the default Google logo when the Create a Screen Overlay button is pressed.
Once you’re happy with the result, it’s time to play around with some of the other options – Entering a Photo Overlay is particularly impressive. Before long you should be pretty confident and create your own images for use with Google Earth screen overlays!