OpenWebGlobe/WebViewer — pull request #18 by twpayne (2011-10-20 13:30:51+00:00)
Title: Add define to choose navigation mode

The attached patch allows the navigation mode to be chosen at compile time (if using the compiled version) or run time (if using the uncompiled version).

To select globe navigation in compiled mode, add --compiler_flags=--define=owg.NAVIGATION_MODE=globe when you call closurebuilder.py.

To select globe navigation in uncompiled mode, add
owg.NAVIGATION_MODE = 'globe';
to your JavaScript, after calling goog.require('owg.OpenWebGlobe') but before calling any OpenWebGlobe functions.