From 16fbbddb45ec387f359358da77f81bfbbb3644fc Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 17 十月 2022 16:26:37 +0800 Subject: [PATCH] 黑白名单,令牌管理,综合展示修改 --- src/components/mapsdk.vue | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/mapsdk.vue b/src/components/mapsdk.vue index 8ba7bb7..9730a8c 100644 --- a/src/components/mapsdk.vue +++ b/src/components/mapsdk.vue @@ -4,7 +4,7 @@ <script> export default { - name: "", + name: '', data() { return {}; }, @@ -13,9 +13,9 @@ }, methods: { init3DMap() { - window.sgworld = new SmartEarth.SGWorld("mapdiv", { - url: "/SmartEarthSDK/Workers/image/earth.jpg", - licenseServer: "http://192.168.20.39/LFServer", + window.sgworld = new SmartEarth.SGWorld('mapdiv', { + url: '/SmartEarthSDK/Workers/image/earth.jpg', + licenseServer: 'http://192.168.20.39/LFServer', }); window.Viewer = sgworld._Viewer; sgworld.Navigate.Stop(); //鍙栨秷椋炶鐘舵�� @@ -25,8 +25,19 @@ }); //鏄剧ずfps sgworld._Viewer.scene.debugShowFramesPerSecond = false; - sgworld.navControl("enableCompass", false); + //mpt娣诲姞 + var option = { + url: 'http://183.162.245.49:82/SG/Elevation', + layerName: 'zhufeng.397336.mpt', + requestVertexNormals: true, + }; + sgworld.Creator.sfsterrainprovider('', option, '', true, ''); + //瀵艰埅鎺т欢 + document.getElementById('distanceLegendDiv').style.display = 'none'; + //姣斾緥灏� + sgworld.navControl('enableCompass', false); //sgworld.navControl("enableDistanceLegend", false); + setTimeout(() => {}, 10000); }, }, }; -- Gitblit v1.9.3