From 368b6c77a9516bfe76faf845dd77d92bb45c95d8 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期五, 22 九月 2023 14:12:07 +0800 Subject: [PATCH] 空间查询,地名定位修改 --- src/components/mapsdk.vue | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/components/mapsdk.vue b/src/components/mapsdk.vue index 805004c..d0cdd48 100644 --- a/src/components/mapsdk.vue +++ b/src/components/mapsdk.vue @@ -75,7 +75,7 @@ <el-form ref="form" :model="coordFrom" - label-width="50px" + label-width="70px" > <el-form-item label="缁忓害:"> <el-input @@ -168,6 +168,7 @@ > <el-form-item label="鍦板悕:"> <el-input + size="small" style="width: 160px" v-model="comprehensive.name" placeholder="璇疯緭鍏ュ湴鍚�...." @@ -177,6 +178,7 @@ <el-button @click="setQueryTable" type="info" + size="small" >鏌ヨ</el-button> </el-form-item> </el-form> @@ -190,6 +192,7 @@ align="center" type="index" label="搴忓彿" + width="70" /> <el-table-column prop="name" @@ -590,7 +593,7 @@ v-model="valueX" ></el-slider> <span>宸﹀彸鎴潰</span> - </div> + </div>SpatialQuery <div class="slide-bg"> <el-slider class="slide" @@ -1299,9 +1302,19 @@ licenseServer: window.sceneConfig.licenseServer, }); window.Viewer = window.sgworld._Viewer; - if (is_production) { Viewer.imageryLayers.removeAll(); + var base_ulr = window.sceneConfig.baseUrl; + if (base_ulr.indexOf('{host}') > -1) { + base_ulr = base_ulr.replace("{host}", iisHost) + } + Viewer.imageryLayers.addImageryProvider( + new Cesium.UrlTemplateImageryProvider({ + url: base_ulr, + maximumLevel: 5 + }) + ); + } //瀹氫綅 // sgworld.Navigate.jumpTo({ @@ -1333,11 +1346,12 @@ // sgworld.Analysis.depthTestAgainstTerrain(true) Viewer.scene.globe.depthTestAgainstTerrain = true; if (is_production) { + var base_ulr = window.sceneConfig.baseUrl; if (base_ulr.indexOf('{host}') > -1) { base_ulr = base_ulr.replace("{host}", iisHost) } - Viewer.imageryLayers.addImageryProvider( + window.TileMapLayer = Viewer.imageryLayers.addImageryProvider( new Cesium.UrlTemplateImageryProvider({ url: base_ulr, maximumLevel: 9 @@ -2145,6 +2159,9 @@ position: absolute; right: 8%; bottom: 1%; + span { + width: 100px; + } } .propertiesPop { width: 350px; -- Gitblit v1.9.3