a20_offline.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0" />
  6. <meta name="author" content="火星科技 http://mars3d.cn " />
  7. <meta name="apple-touch-fullscreen" content="yes" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  10. <meta name="format-detection" content="telephone=no" />
  11. <meta name="x5-fullscreen" content="true" />
  12. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
  13. <!-- 标题及搜索关键字 -->
  14. <meta name="keywords" content="火星科技,cesium,3D,GIS,marsgis,三维,地球,地图,开发,框架,系统,示例,资料,模型,离线,外包,合肥,安徽,中国" />
  15. <meta
  16. name="description"
  17. content="火星科技 合肥火星 合肥火星科技 合肥火星科技有限公司 leaflet leaflet框架 leaflet开发 cesium cesium开发 cesium框架 三维 地球 模型 gis marsgis 地图离线 地图开发 地图框架 地图外包 框架 开发 外包 地图离线 二维地图 三维地图 全景漫游 地理信息系统 云GIS 三维GIS GIS平台 WebGIS"
  18. />
  19. <link rel="shortcut icon" type="image/x-icon" href="" />
  20. <title>功能示例 </title>
  21. <!--第三方lib-->
  22. <script
  23. type="text/javascript"
  24. src="../lib/include-lib.js"
  25. libpath="../lib/"
  26. include="jquery,font-awesome,bootstrap,layer,haoutil,mars3d"
  27. ></script>
  28. <link href="css/style.css" rel="stylesheet" />
  29. </head>
  30. <body class="dark">
  31. <!--加载前进行操作提示,优化用户体验-->
  32. <div id="mask" class="signmask" onclick="removeMask()"></div>
  33. <div id="mars3dContainer" class="mars3d-container"></div>
  34. <div class="infoview">
  35. 提示:该示例目的演示交付的离线数据的效果<br/>
  36. 1) 包括全国12.5米地形(当前页面效果)<br/>
  37. 2) 包括0-12级影像底图(当前页面效果)<br/>
  38. 3) 包括所有模型数据:
  39. <a href="editor.html#g10_3dtiles_layers" target="_blank" class="btn btn-default">3dtiles模型</a>
  40. <a href="editor.html#g05_gltfList" target="_blank" class="btn btn-default">gltf模型</a>
  41. <br/>
  42. 4) 包括其他所有示例的json等文件
  43. </div>
  44. <script src="./js/common.js"></script>
  45. <script type="text/javascript">
  46. "use script"; //开发环境建议开启严格模式
  47. var map;
  48. function initMap(options) {
  49. //合并属性参数,可覆盖config.json中的对应配置
  50. var mapOptions = mars3d.Util.merge(options, {
  51. scene: {
  52. center: { lat: 14.741847, lng: 108.420914, alt: 10003793, heading: 356, pitch: -83 },
  53. },
  54. basemaps: [
  55. {
  56. pid: 10,
  57. name: "卫星地图",
  58. type: "xyz",
  59. icon: "img/basemaps/mapboxSatellite.png",
  60. url: "//data.mars3d.cn/tile/googleImg/{z}/{x}/{y}.jpg",
  61. minimumLevel: 0,
  62. maximumLevel: 12,
  63. show: true,
  64. },
  65. {
  66. pid: 10,
  67. name: "单张图片",
  68. icon: "img/basemaps/offline.png",
  69. type: "image",
  70. url: "//data.mars3d.cn/file/img/world/world.jpg",
  71. },
  72. ],
  73. });
  74. //创建三维地球场景
  75. map = new mars3d.Map("mars3dContainer", mapOptions);
  76. }
  77. </script>
  78. </body>
  79. </html>