OpenWebGlobe / WebViewer

Engine development: OpenWebGlobe for WebGL
http://www.openwebglobe.org
Other
157 stars 76 forks source link

Add define to choose navigation mode #18

Closed twpayne closed 13 years ago

twpayne commented 13 years ago

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.

martinchristen commented 13 years ago

I will add a function ogSetNavigationMode(OG_NAVIGATION_FLIGHT) and ogSetNavigationMode(OG_NAVIGATION_GLOBE)