Skip to content

Commit f377eb2

Browse files
committed
优化站点
1 parent b01f789 commit f377eb2

File tree

2 files changed

+33
-31
lines changed

2 files changed

+33
-31
lines changed

examples/js/common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ $(document).ready(function () {
9494
if (versionReg) {
9595
// href = window.location.origin + pathname.replace(/([^\/]*\/){1}([^\/]*)/, '$1$2/en');
9696
href = window.location.origin + pathname.replace(/([^\/]*\/){2}([^\/]*)/, '/$1$2/en');
97+
}else if(window.isLocal) {
98+
href = window.location.origin + pathname.replace(/(([^\/]*\/){3})([^\/]*)/,'$1$3/en');
9799
}
98100
} else if(window.isLocal) {
99101
href = window.location.origin + pathname.replace(/(([^\/]*\/){3})([^\/]*)/,'$1$3/en')

test/tool/GlobeParameter.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
GlobeParameter = {
2-
rootURL: "http://192.168.169.39:8090/iserver/services",
3-
mapServiceURL: "http://192.168.169.39:8090/iserver/services/map-world/rest/maps/",
4-
mapTemperatureURL:"http://192.168.169.39:8090/iserver/services/map-temperature/rest/maps/",
5-
worldMapURL: "http://192.168.169.39:8090/iserver/services/map-world/rest/maps/世界地图",
6-
networkAnalystURL: "http://192.168.169.39:8090/iserver/services/transportationanalyst-sample/rest/networkanalyst/RoadNet@Changchun",
7-
spatialAnalystURL: "http://192.168.169.39:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst",
8-
spatialAnalystURL_Changchun: "http://192.168.169.39:8090/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst",
9-
dataServiceURL: "http://192.168.169.39:8090/iserver/services/data-world/rest/data",
10-
datajingjinURL:"http://192.168.169.39:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/",
11-
datachangchunURL:"http://192.168.169.39:8090/iserver/services/data-changchun/rest/data/datasources/Changchun/datasets/",
12-
dataspatialAnalystURL:"http://192.168.169.39:8090/iserver/services/data-spatialAnalyst/rest/data/datasources/Interpolation/datasets/",
13-
editServiceURL: "http://192.168.169.39:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/Landuse_R",
14-
editServiceURL_LINE: "http://192.168.169.39:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/Geomor_L",
15-
editServiceURL_POINT: "http://192.168.169.39:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/Neighbor_P",
16-
trafficTransferURL: "http://192.168.169.39:8090/iserver/services/traffictransferanalyst-sample/restjsr/traffictransferanalyst/Traffic-Changchun",
17-
vectorURL: "http://192.168.169.39:8090/iserver/services/map-world/rest/maps/World/",
18-
gridURL: "http://192.168.169.39:8090/iserver/services/map-jingjin/rest/maps/京津地区土地利用现状图",
19-
imageURL: "http://192.168.169.39:8090/iserver/services/map-world/rest/maps/世界地图_Day",
20-
WorldURL: "http://192.168.169.39:8090/iserver/services/map-world/rest/maps/World",
21-
ChinaURL: "http://192.168.169.39:8090/iserver/services/map-china400/rest/maps/China",
22-
WMTSURL: "http://192.168.169.39:8090/iserver/services/map-world/wmts100",
23-
WCSURL: "http://192.168.169.39:8090/iserver/services/data-world/wcs111",
24-
plotUrl: "http://192.168.169.39:8090/iserver/services/plot-jingyong/rest/plot",
25-
tileSetsURL: "http://192.168.169.39:8090/iserver/services/map-changchun/rest/maps/长春市区图",
26-
addressMatchURL: "http://192.168.169.39:8090/iserver/services/addressmatch-Address/restjsr/v1/address",
27-
jingjinMapURL: "http://192.168.169.39:8090/iserver/services/map-jingjin/rest",
28-
editServiceURL_leaflet: "http://192.168.169.39:8090/iserver/services/data-jingjin/rest/data",
29-
China4326URL: "http://192.168.169.39:8090/iserver/services/map-china400/rest/maps/China_4326",
30-
addressMatchURL_code: "http://192.168.169.39:8090/iserver/services/addressmatch-Address/restjsr/v1/address/geocoding",
31-
addressMatchURL_decode: "http://192.168.169.39:8090/iserver/services/addressmatch-Address/restjsr/v1/address/geodecoding",
32-
ChinaProvincesURL: "http://192.168.169.39:8090/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces"
2+
rootURL: "http://localhost:8090/iserver/services",
3+
mapServiceURL: "http://localhost:8090/iserver/services/map-world/rest/maps/",
4+
mapTemperatureURL:"http://localhost:8090/iserver/services/map-temperature/rest/maps/",
5+
worldMapURL: "http://localhost:8090/iserver/services/map-world/rest/maps/世界地图",
6+
networkAnalystURL: "http://localhost:8090/iserver/services/transportationanalyst-sample/rest/networkanalyst/RoadNet@Changchun",
7+
spatialAnalystURL: "http://localhost:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst",
8+
spatialAnalystURL_Changchun: "http://localhost:8090/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst",
9+
dataServiceURL: "http://localhost:8090/iserver/services/data-world/rest/data",
10+
datajingjinURL:"http://localhost:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/",
11+
datachangchunURL:"http://localhost:8090/iserver/services/data-changchun/rest/data/datasources/Changchun/datasets/",
12+
dataspatialAnalystURL:"http://localhost:8090/iserver/services/data-spatialAnalyst/rest/data/datasources/Interpolation/datasets/",
13+
editServiceURL: "http://localhost:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/Landuse_R",
14+
editServiceURL_LINE: "http://localhost:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/Geomor_L",
15+
editServiceURL_POINT: "http://localhost:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/Neighbor_P",
16+
trafficTransferURL: "http://localhost:8090/iserver/services/traffictransferanalyst-sample/restjsr/traffictransferanalyst/Traffic-Changchun",
17+
vectorURL: "http://localhost:8090/iserver/services/map-world/rest/maps/World/",
18+
gridURL: "http://localhost:8090/iserver/services/map-jingjin/rest/maps/京津地区土地利用现状图",
19+
imageURL: "http://localhost:8090/iserver/services/map-world/rest/maps/世界地图_Day",
20+
WorldURL: "http://localhost:8090/iserver/services/map-world/rest/maps/World",
21+
ChinaURL: "http://localhost:8090/iserver/services/map-china400/rest/maps/China",
22+
WMTSURL: "http://localhost:8090/iserver/services/map-world/wmts100",
23+
WCSURL: "http://localhost:8090/iserver/services/data-world/wcs111",
24+
plotUrl: "http://localhost:8090/iserver/services/plot-jingyong/rest/plot",
25+
tileSetsURL: "http://localhost:8090/iserver/services/map-changchun/rest/maps/长春市区图",
26+
addressMatchURL: "http://localhost:8090/iserver/services/addressmatch-Address/restjsr/v1/address",
27+
jingjinMapURL: "http://localhost:8090/iserver/services/map-jingjin/rest",
28+
editServiceURL_leaflet: "http://localhost:8090/iserver/services/data-jingjin/rest/data",
29+
China4326URL: "http://localhost:8090/iserver/services/map-china400/rest/maps/China_4326",
30+
addressMatchURL_code: "http://localhost:8090/iserver/services/addressmatch-Address/restjsr/v1/address/geocoding",
31+
addressMatchURL_decode: "http://localhost:8090/iserver/services/addressmatch-Address/restjsr/v1/address/geodecoding",
32+
ChinaProvincesURL: "http://localhost:8090/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces"
3333
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy