Skip to content

Commit 9838db3

Browse files
committed
修复一些例子的本地地址 初始化级别 名字不合理的问题
1 parent ee06c35 commit 9838db3

18 files changed

+40
-40
lines changed

dist/include-classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@
129129

130130
load();
131131
window.isLocal = false;
132-
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
132+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host;
133133
})();

dist/include-leaflet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@
100100

101101
load();
102102
window.isLocal = false;
103-
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
103+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host;
104104
})();

dist/include-mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@
7373

7474
load();
7575
window.isLocal = false;
76-
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
76+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host;
7777
})();

dist/include-openlayers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
var excludes = (targetScript.getAttribute('exclude') || "").split(",");
3838
if (!inArray(excludes, 'ol')) {
3939
inputCSS("https://cdn.bootcss.com/openlayers/4.6.4/ol.css");
40-
inputScript("https://cdn.bootcss.com/openlayers/4.6.4/ol.js");
40+
inputScript("https://cdn.bootcss.com/openlayers/4.6.4/ol-debug.js");
4141
}
4242
if (inArray(includes, 'mapv')) {
4343
inputScript("http://mapv.baidu.com/build/mapv.min.js");
@@ -46,7 +46,7 @@
4646
inputScript("https://cdn.bootcss.com/Turf.js/4.6.1/turf.min.js");
4747
}
4848
if (!inArray(excludes, 'iclient9-openlayers')) {
49-
inputScript("../../dist/iclient9-openlayers.min.js");
49+
inputScript("../../dist/iclient9-openlayers.js");
5050
}
5151
if (!inArray(excludes, 'iclient9-openlayers-css')) {
5252
inputCSS("../../dist/iclient9-openlayers.min.css");
@@ -69,5 +69,5 @@
6969

7070
load();
7171
window.isLocal = false;
72-
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
72+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host;
7373
})();

examples/js/include-web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,6 @@
149149

150150
load();
151151
window.isLocal = false;
152-
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
152+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host;
153153
window.version = "9.0.1";
154154
})();

examples/leaflet/12_graphicLayerClover.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
crs: L.CRS.EPSG4326,
1717
center: {lon: 0, lat: 0},
1818
maxZoom: 18,
19-
zoom: 1
19+
zoom: 6
2020
});
2121

2222

examples/leaflet/config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -530,18 +530,18 @@ var exampleConfig = {
530530
name: "热力图",
531531
name_en: "heat map",
532532
content: [{
533-
name: "热力图-随机点",
534-
name_en: "heat map - random points",
533+
name: "随机点",
534+
name_en: "random points",
535535
thumbnail: "l_heat.png",
536536
fileName: "12_heatMap"
537537
}, {
538-
name: "热力图-纽约出租车上车点",
539-
name_en: "heat map - NY taxi car point",
538+
name: "纽约出租车上车点",
539+
name_en: "NY taxi car point",
540540
thumbnail: "l_heatmap_nyc.png",
541541
fileName: "12_heatMap_NY"
542542
},{
543-
name: "随机点热点图",
544-
name_en: "random points",
543+
name: "随机点(Classic)",
544+
name_en: "random points (Classic)",
545545
thumbnail: "l_heatMapLayer.png",
546546
fileName: "heatMapLayer"
547547
}]
@@ -1010,7 +1010,7 @@ var exampleConfig = {
10101010
}]
10111011
}
10121012
}
1013-
},
1013+
}
10141014

10151015
};
10161016

examples/leaflet/turf_measurement.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script type="text/javascript" include="turf,leaflet.draw" src="../../dist/include-leaflet.js"></script>
1212

1313
<script type="text/javascript">
14-
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://support.supermap.com.cn:8090",
14+
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090",
1515
url = host + "/iserver/services/map-jingjin/rest/maps/京津地区地图",
1616
turfLayer, resultLayer, urlWorld,
1717
totalLat = 0, totalLng = 0, averageLat, averageLng, distance, geo, coordinate,

examples/locales/en-US/resources.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,12 @@ window.resources = {
373373
"title_tiledMapLayerNonEarth": "Planar coordinate base map of SuperMap REST",
374374
"title_tiledMapLayerProj4": "Custom Scale Map",
375375
"title_interpolationAnalystServiceKriging": "Spatial Analysis - Kriging Interpolation Analysis",
376-
"title_interpolationAnalystServiceKrigingUniversal": "Spatial Analysis -Universal Kriging Interpolation Analysis",
377-
"title_findMTSPPathsServiceLogistics": "Multi-traveler Analysis (Logistics Distribution)",
378-
"title_findTSPPathsService": "Multi-traveler Analysis (Quality Inspection)",
379-
"title_graphicLayer":"High efficiency point layer(points of 180K NY taxis)",
380-
"title_graphicLayerClovers":"High efficiency point layer(clover)",
381-
"title_graphicLayerTaxi":"High efficiency point layer(picture drawing of 180K NY taxis)",
376+
"title_interpolationAnalystServiceKrigingUniversal": "Spatial Analysis - Universal Kriging Interpolation Analysis",
377+
"title_findMTSPPathsServiceLogistics": "Multi-traveler Analysis - Logistics Distribution ",
378+
"title_findTSPPathsService": "Multi-traveler Analysis - Quality Inspection",
379+
"title_graphicLayer":"High efficiency point layer - points of 180K NY taxis",
380+
"title_graphicLayerClovers":"High efficiency point layer - clover",
381+
"title_graphicLayerTaxi":"High efficiency point layer - picture drawing of 180K NY taxis",
382382
"title_heatMap": "Heat map",
383383
"title_heatMapNY": "Heat map of New York Taxis",
384384
"title_markerCluster": "Marker Cluster",
@@ -1339,6 +1339,6 @@ window.resources = {
13391339
"style_width420px": 'width: 500px',
13401340
"style_width350px": 'width: 400px',
13411341
"style_heatMapWidth": "width: 340px",
1342-
"style_plotAnimation": "width: 170px; height: 35px; margin-bottom: 0; border-bottom-right-radius: 4px; border-top-right-radius: 4px;",
1342+
"style_plotAnimation": "width: 170px; height: 35px; margin-bottom: 0; border-bottom-right-radius: 4px; border-top-right-radius: 4px;"
13431343
}
13441344
};

examples/locales/zh-CN/resources.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ window.resources = {
376376
"title_interpolationAnalystServiceKrigingUniversal":"空间分析-泛克吕金插值分析",
377377
"title_findMTSPPathsServiceLogistics":"网络分析服务-多旅行商分析(物流配送)",
378378
"title_findTSPPathsService":"网络分析服务-多旅行商分析(质检巡查)",
379-
"title_graphicLayer":"高效率点图层(18万纽约出租车点)",
380-
"title_graphicLayerClovers":"高效率点图层(三叶草)",
381-
"title_graphicLayerTaxi":"高效率点图层(18万纽约出租车图片绘制)",
379+
"title_graphicLayer":"高效率点图层-18万纽约出租车点",
380+
"title_graphicLayerClovers":"高效率点图层-三叶草",
381+
"title_graphicLayerTaxi":"高效率点图层-18万纽约出租车图片绘制",
382382
"title_heatMap":"热力图",
383383
"title_heatMapNY":"纽约出租车上车点热力图",
384384
"title_markerCluster":"点聚合",

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