我们可以通过API来打开mpt,代码如下:
SGWorld66.Open("[email protected]:82");
如果我们已经有Fly工程,想在fly工程中加载TG发布的mpt,代码如下:
SGWorld66.Creator.CreateImageryLayer("sample.MPT", 0.0, 0.0, 0.0, 0.0, "<EXT><ExtInfo><![CDATA[<Skyline version=\"1.0.0\"><ServerList name=\"sample.MPT\"><Server priority=\"1\">192.168.203.48:82$</Server></ServerList></Skyline>]]></ExtInfo><ExtType>mpt</ExtType></EXT>", "mptplg.rct");