|
osgEarth::Map *map=mOSG->mapNode->getMap();
osgEarth:rivers::TMSOptions imgOption;
imgOption.url()="http://readymap.org/readymap/tiles/1.0.0/7/";
map->addImageLayer(new osgEarth::ImageLayer( "image", imgOption ));
/////
上面是可以添加这个服务的,请问下面的这个.earth配置的服务,如何用代码添加啊
<image name="yuzhoushi" driver="wms">
<url>http://116.255.136.38:6861/geoserver/cgis/wms</url>
<layers>cgis:yuzhoushi</layers>
<format>png</format>
<srs>EPSG:4326</srs>
<tile_size>256</tile_size>
<transparent>false</transparent>
<min_level>6</min_level>
</image> |
|