<cache> element

Configures a caching mechanism for the map.

Please refer to the discussion on caching for more details on how osgEarth implements caching.

Attributes

type Which caching mechanism to use (default = "tms") optional
cache_only When set to true, the map will run completely off of the cache and will not load any underlying map layer. (default="false") optional

Sub-elements

The sub-elements depend on which cache type you specify.

Example

<map name="test" type="geocentric" version="2">

    <options>
        <!-- sets up a default map-wide cache configuration -->
        <cache type="tms">
            <path>f:/mapdata</path>
        </cache>
    </options>

    <image name="bluemarble" driver="tms">
        <url>http://server//cgi-bin/tilecache.cgi/1.0.0/bluemarble/</url>   
    </image>

</map>