|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
- <div style="position: absolute;top: 20px;left: 20px;z-index: 9;">
|
|
|
+ <div style="position: absolute;top: 60px;left: 20px;z-index: 9;">
|
|
|
<div style="display: flex;">
|
|
|
<el-select
|
|
|
v-model="typeValue"
|
|
|
@@ -394,35 +394,36 @@ export default {
|
|
|
// inputAddress:'',
|
|
|
|
|
|
if(that.typeValue == 1){
|
|
|
- // let curUrl = that.inputAddress;
|
|
|
- let curUrl = 'http://121.43.55.7:8889/geoserver/kdyjs/wms';
|
|
|
- that.inputAddress = curUrl;
|
|
|
+ let curUrl = that.inputAddress;
|
|
|
+ // let curUrl = 'http://121.43.55.7:8889/geoserver/kdyjs/wms';
|
|
|
+ // that.inputAddress = curUrl;
|
|
|
let param = {url:curUrl,layers:'kdyjs:CourtyardFace'}
|
|
|
that.addWMSLayer(param)
|
|
|
|
|
|
}else if(that.typeValue == 2){
|
|
|
+ let curUrl = that.inputAddress;
|
|
|
let type = "vec"; //cia img vec cva
|
|
|
- let curUrl = "https://{s}.tianditu.gov.cn/"+type+"_w/wmts?tk=f74e6c0cc247c42af05f7053e0b5fb9b";
|
|
|
- that.inputAddress = curUrl;
|
|
|
+ // let curUrl = "https://{s}.tianditu.gov.cn/"+type+"_w/wmts?tk=f74e6c0cc247c42af05f7053e0b5fb9b";
|
|
|
+ // that.inputAddress = curUrl;
|
|
|
let param = {url:curUrl,layers:type}
|
|
|
that.addWMTSLayer(param)
|
|
|
|
|
|
}else if(that.typeValue == 3){
|
|
|
- // let curUrl = that.inputAddress;
|
|
|
- let curUrl = 'https://service-api.onemap.sh.gov.cn/data-service-manage-service/MapProxyApi/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBsaWNhdGlvbl9pZCI6NjEsImFwcGxpY2F0aW9uX25hbWUiOiLpnZLmtabkuozkuInnu7TmnI3liqHns7vnu58iLCJleHAiOjIwNDY2Nzg0MDN9.IKUMdjUX4U1jncIUNren-iotL7duXI90aLECMjpvUX8/shmap_normal_web/MapServer';
|
|
|
- that.inputAddress = curUrl;
|
|
|
+ let curUrl = that.inputAddress;
|
|
|
+ // let curUrl = 'https://service-api.onemap.sh.gov.cn/data-service-manage-service/MapProxyApi/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBsaWNhdGlvbl9pZCI6NjEsImFwcGxpY2F0aW9uX25hbWUiOiLpnZLmtabkuozkuInnu7TmnI3liqHns7vnu58iLCJleHAiOjIwNDY2Nzg0MDN9.IKUMdjUX4U1jncIUNren-iotL7duXI90aLECMjpvUX8/shmap_normal_web/MapServer';
|
|
|
+ // that.inputAddress = curUrl;
|
|
|
let param = {url:curUrl,layers:'arcgisLayer'}
|
|
|
that.addARCGISLayer(param)
|
|
|
}else if(that.typeValue == 4){
|
|
|
- // let curUrl = that.inputAddress;
|
|
|
- let curUrl = "http://121.43.55.7:65456/shzx/tileset.json";
|
|
|
- that.inputAddress = curUrl;
|
|
|
+ let curUrl = that.inputAddress;
|
|
|
+ // let curUrl = "http://121.43.55.7:65456/shzx/tileset.json";
|
|
|
+ // that.inputAddress = curUrl;
|
|
|
let param = {url:curUrl}
|
|
|
that.add3dtilesData(param);
|
|
|
}else if(that.typeValue == 5){
|
|
|
- // let curUrl = that.inputAddress;
|
|
|
- let curUrl = "https://kdyjs-proxy.metamaker.cn/proxy_map/static/json/%E6%A5%BC%E5%AE%87%E6%95%B0%E6%8D%AE-20250820.geojson";
|
|
|
- that.inputAddress = curUrl;
|
|
|
+ let curUrl = that.inputAddress;
|
|
|
+ // let curUrl = "https://kdyjs-proxy.metamaker.cn/proxy_map/static/json/%E6%A5%BC%E5%AE%87%E6%95%B0%E6%8D%AE-20250820.geojson";
|
|
|
+ // that.inputAddress = curUrl;
|
|
|
let param = {url:curUrl}
|
|
|
that.getVectorData(param);
|
|
|
}else if(that.typeValue == 6){
|
|
|
@@ -445,10 +446,11 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
-
|
|
|
.container {
|
|
|
width: 100%;
|
|
|
- height: calc(100vh - 120px);
|
|
|
+ height: 100%;
|
|
|
+ height: 100vh;
|
|
|
+ // height: calc(100vh - 120px);
|
|
|
padding: 0px;
|
|
|
margin: 0 auto;
|
|
|
overflow: hidden;
|