1. <!--
    2. osgEarth Sample : Layer Opacity
    3. This example tests setting a layers initial opacity in the .earth file
    4. 设置一个不透明图层
    5. -->
    6. <!--地图名为hi-res inset,地心坐标系,地球文件版本2(默认) -->
    7. <map name="hi-res inset" type="geocentric" version="2">
    8. <!--底层影像名为world-tiff,驱动器为gdal,不使用缓存 !!!GDAL 本地-->
    9. <image driver="gdal" name="world-tiff" cache_enabled="false">
    10. <url>../data/world.tif</url>
    11. <caching_policy usage="no_cache"/>
    12. </image>
    13. <!--添加影像名为boston_inset,驱动器为gdal,不透明度为0.3 -->
    14. <!--影像带有经纬度信息-->
    15. <image name="boston_inset" driver="gdal" opacity="0.3">
    16. <url>../data/boston-inset-wgs84.tif</url>
    17. </image>
    18. </map>