SkylineGlobe API 如何以图层的方式导入MPT地形
2015-08-21 13:17
429 查看
测试环境:TerraExplorer Pro 6.6;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" language="javascript"> function LoadMPT() { try { var sg = CreateSGObj(); var ElevationLayer = sg.Creator.CreateElevationLayer("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.9.97:8088$</Server></ServerList></Skyline>]]></ExtInfo><ExtType>mpt</ExtType></EXT>", "mptplg.rct"); ElevationLayer.ElevationScale = 100; } catch (e) { alert(e); } } /* 功能: 创建sgworld对象 备注: 赵贺 2015.04.01. */ function CreateSGObj() { var obj = $("sgworld"); if (obj == null) { obj = document.createElement('object'); document.body.appendChild(obj); obj.name = "sgworld"; obj.id = "sgworld"; obj.classid = "CLSID:3A4F9199-65a8-11d5-85c1-0001023952c1"; } return obj; } function $(id) { return window.document.getElementById(id); } </script> </head> <body> <input id="Button1" type="button" value="button" onclick="LoadMPT()" /> <object id="TE3DWindow" classid="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1" width="1000px" height="600px"> </object> <object id="TerraExplorerInformationWindow" classid="CLSID:3a4f9193-65a8-11d5-85c1-0001023952c1" width="200px" height="600px"> </object> </body> </html>
相关文章推荐
- 启动Tomcat提示:指定的服务未安装
- Eclipse生成的java class文件通过java命令行调用提示Exception in thread "main" java.lang.NoClassDefFoundError
- Hadoop HA
- Eclipse生成的java class文件通过java命令行调用提示找不到主类的问题
- 枚举类型使用的最佳实践
- 缓存穿透与缓存雪崩
- CF251A. Points on Line
- Flume-ng+Kafka+Storm处理日志
- LeetCode "Longest Substring with At Most Two Distinct Characters"
- 【多校10】HDU 5407 5410 5411 5414 5416
- 实现select自动选择下拉菜单的值
- JDK API 在线文档
- 软键盘模式及对布局的影响
- [C++] String to Integer (atoi)
- Tomcat的JVM内存大小如何设置?
- json数据和数组的转换,以及访问
- 打开虚拟硬盘 失败
- 推荐几个好用的,好看的,容易上手的前端模板
- 慎用USES_CONVERSION
- 图论06——优化的Dijkstra算法