<connection_status> Element
(Documentation :: Earth Files?)
The <connection_status> element controls whether or not osgEarth will connect to the Internet to fetch data. This is useful for running in a "cache-only" mode if you want to populate your local cache and run completely offline. By default, the <connection_status> is online. Setting its value to offline will inform osgEarth to avoid connecting to the Internet for data.
You can also set the OSGEARTH_OFFLINE environment variable to YES to put osgEarth in offline mode.
Example:
<map name="MyMap" type="geocentric">
<!--Add a TMS image source-->
<image name="TMS" driver="tms">
<url>http://labs.metacarta.com/wms-c/Basic.py/1.0.0/satellite/</url>
<format>jpeg</format>
<tile_size>256</tile_size>
</image>
<cache type="tilecache">
<path>c:/osgearth_cache</path>
</cache>
<!--Run completely off of the cache, do not connect to the Internet-->
<connection_status>offline</connection_status>
</map>
