From fa7530765676cb9e65ae5510996bd4cf8cbe6c31 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 08 三月 2024 13:42:41 +0800 Subject: [PATCH] 1 --- ExportMap/ExportMap.csproj | 1 ExportMap/js/config.js | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 0 deletions(-) diff --git a/ExportMap/ExportMap.csproj b/ExportMap/ExportMap.csproj index ae87bdc..a4a07af 100644 --- a/ExportMap/ExportMap.csproj +++ b/ExportMap/ExportMap.csproj @@ -113,6 +113,7 @@ <Content Include="DLL\System.Data.SQLite.dll" /> <Content Include="fme.html" /> <Content Include="Global.asax" /> + <Content Include="js\config.js" /> <Content Include="js\insertFiles.js" /> <Content Include="js\jquery.1.12.4.js" /> <Content Include="js\rollups.js" /> diff --git a/ExportMap/js/config.js b/ExportMap/js/config.js new file mode 100644 index 0000000..eea89ee --- /dev/null +++ b/ExportMap/js/config.js @@ -0,0 +1,105 @@ +var isLocal = false; + +var is_production = false; // 鏄惁涓虹敓浜х幆澧� + +var menuStartName = "绠¢亾鍩虹澶ф暟鎹钩鍙�"; + +var isWeb = location.hostname.indexOf("103.") == 0; // 103.135.160.14 + +var isHttps = location.protocol.toLowerCase() == "https:"; + + + + + + + + +var host = location.protocol + "//" + location.hostname; // http://192.168.11.205 + +var webHost = location.origin; // http://192.168.11.205:8088 + +if (isLocal) { + host = "http://192.168.11.205"; + webHost = host + ":8088"; +} + +var iisHost = host + (isWeb ? ":9027" : ":80"); // http://192.168.11.205:80 + +var fmeHost = host + (isWeb ? ":9028" : ":88"); // http://192.168.11.205:88 + + + + + + + + + + + + + + +var LFData = iisHost + "/LFData"; + +// Server +var BASE_URL = webHost + '/server'; + +// GeoServerUrl +var geoServerURl = webHost + '/geoserver/LF/wms'; + +// WebSocket +var socketUrl = 'ws://' + webHost.split("//")[1] + '/server/ws/select'; // 192.168.11.205:8088 + +var geoserverWFS = '/geoserver/LF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Abs_project&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; + +var geoserverWFSLine = '/geoserver/LF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Am_pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; + +// 妯″瀷鍔犺浇鍦板潃 +var modelUrl = LFData; + +// DEM +var demLayer = LFData + '/dem'; + +// 缁煎悎灞曠ず +window.sceneConfig = { + // Sdk璁稿彲 + licenseServer: iisHost + '/LFServer', + // MPT鍚嶇О + mptName: "china_5m.Ei.402586", + // SG鍦板潃 + SGUrl: iisHost + "/SG/Elevation", + // Fly鍦板潃 + fly: iisHost + '/LFData/fly/' + (isWeb ? "lfgd.fly" : "lfgd_127.fly"), + // + positionBtn: [], + // 褰卞儚 + baseUrl: iisHost + "/LFData/2d/tiles/img/{z}/{x}/{y}.png", + // 鐭㈤噺 + baseUrl_sl: iisHost + '/LFData/2d/tiles/vec/{z}/{x}/{y}.png', + // 鍦板舰 + baseUrl_yx: iisHost + '/LFData/2d/tiles/ter/{z}/{x}/{y}.png' +}; + +// 宸ョ偣淇℃伅琛� +var workSite = [ + { + name: "鍕樺療淇℃伅琛�", + table: "s_survey_information", + ns: 'bs' + } +]; + +var dirTemplateFile = '宸ョ▼椤圭洰-鐩綍绠$悊妯20230613.xlsx'; + +var gaoDeBaseUrl = [{ + url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', + label: '楂樺痉鐭㈤噺' +}, { + url: 'https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', + label: '楂樺痉褰卞儚' +}, { + url: 'http://webst02.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8', + label: '楂樺痉褰卞儚鏍囨敞' +}]; -- Gitblit v1.9.3