Skip to content

Commit 694f0d7

Browse files
committed
[update] 更新http为https
1 parent 0238f44 commit 694f0d7

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/leaflet/components/clientcomputation/ClientComputationView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export var ClientComputationView = ComponentsViewBase.extend({
308308
let analysisingBtn = L.DomUtil.create('div', 'component-analysis__analysisbtn--analysising', analysingContainer);
309309
let svgContainer = L.DomUtil.create('div', 'component-analysis__svg-container', analysisingBtn);
310310
svgContainer.id = 'analyse_background';
311-
svgContainer.innerHTML = `<svg class="component-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg">
311+
svgContainer.innerHTML = `<svg class="component-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="https://www.w3.org/2000/svg">
312312
<path id="ring" fill="#FFF" transform="translate(8,8)" d="M 0 0 v -8 A 8 8 0 1 1 -8.00 0 z"></path>
313313
<circle cx="8" cy="8" r="6" fill="#38ADF5"></circle>
314314
<rect class="svg-top" x="8" y="0" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>

src/leaflet/components/dataservicequery/DataServiceQueryView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export var DataServiceQueryView = ComponentsViewBase.extend({
231231
let analysingContainer = L.DomUtil.create('div', 'component-analysis__analysisbtn--analysing-container hidden', runBtn);
232232
let analysisingBtn = L.DomUtil.create('div', 'component-analysis__analysisbtn--analysising component-servicequery__querybtn--querying', analysingContainer);
233233
let svgContainer = L.DomUtil.create('div', 'component-analysis__svg-container', analysisingBtn);
234-
svgContainer.innerHTML = `<svg class="component-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg">
234+
svgContainer.innerHTML = `<svg class="component-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="https://www.w3.org/2000/svg">
235235
<path id="ring" fill="#FFF" transform="translate(8,8)" d="M 0 0 v -8 A 8 8 0 1 1 -8.00 0 z"></path>
236236
<circle cx="8" cy="8" r="6" fill="#38ADF5"></circle>
237237
<rect class="svg-top" x="8" y="0" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>

src/leaflet/components/distributedanalysis/DistributedAnalysisView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export var DistributedAnalysisView = ComponentsViewBase.extend({
274274
let analysisingBtn = L.DomUtil.create('div', 'component-analysis__analysisbtn--analysising', analysingContainer);
275275
analysisingBtn.style.width = '200px';
276276
let svgContainer = L.DomUtil.create('div', 'component-analysis__svg-container', analysisingBtn);
277-
svgContainer.innerHTML = `<svg class="component-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg">
277+
svgContainer.innerHTML = `<svg class="component-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="https://www.w3.org/2000/svg">
278278
<path id="ring" fill="#FFF" transform="translate(8,8)" d="M 0 0 v -8 A 8 8 0 1 1 -8.00 0 z"></path>
279279
<circle cx="8" cy="8" r="6" fill="#38ADF5"></circle>
280280
<rect class="svg-top" x="8" y="0" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>

src/openlayers/mapping/Tianditu.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import WMTSTileGrid from 'ol/tilegrid/WMTS';
1212
* @classdesc 天地图图层源。
1313
* @modulecategory Mapping
1414
* @param {Object} opt_options - 参数。
15-
* @param {string} [opt_options.url='http://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?'] - 服务地址。
16-
* @param {string} opt_options.key - 天地图服务密钥。详见{@link http://lbs.tianditu.gov.cn/server/MapService.html}
15+
* @param {string} [opt_options.url='https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?'] - 服务地址。
16+
* @param {string} opt_options.key - 天地图服务密钥。详见{@link https://lbs.tianditu.gov.cn/server/MapService.html}
1717
* @param {string} [opt_options.layerType='vec'] - 图层类型。(vec:矢量图层,img:影像图层,ter:地形图层)
1818
* @param {string} [opt_options.attributions] - 版权描述信息。
1919
* @param {number} [opt_options.cacheSize = 2048] - 缓冲大小。
@@ -39,14 +39,14 @@ export class Tianditu extends WMTS {
3939
"img": 18
4040
}
4141
var options = opt_options || {};
42-
var attributions = options.attributions || "Map Data <a href='http://www.tianditu.gov.cn' target='_blank'><img style='background-color:transparent;bottom:2px;opacity:1;' " +
43-
"src='http://api.tianditu.gov.cn/img/map/logo.png' width='53px' height='22px' opacity='0'></a> with " +
42+
var attributions = options.attributions || "Map Data <a href='https://www.tianditu.gov.cn' target='_blank'><img style='background-color:transparent;bottom:2px;opacity:1;' " +
43+
"src='https://api.tianditu.gov.cn/img/map/logo.png' width='53px' height='22px' opacity='0'></a> with " +
4444
"<span>© SuperMap iClient</span>"
4545
options.layerType = options.layerType || "vec";
4646
options.layerType = options.isLabel ? layerLabelMap[options.layerType] : options.layerType;
4747
options.matrixSet = (options.projection === 'EPSG:4326' || options.projection === 'EPSG:4490') ? "c" : "w";
4848
if (!options.url && !options.urls) {
49-
options.url = "http://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"
49+
options.url = "https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"
5050
}
5151
if (options.key) {
5252
options.url = `${options.url}tk=${options.key}`;

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ export class WebMap extends Observable {
11381138
}
11391139
break;
11401140
case 'OSM':
1141-
baseLayerInfo.url = 'http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png';
1141+
baseLayerInfo.url = 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png';
11421142
baseLayerInfo.epsgCode = 'EPSG:3857';
11431143
baseLayerInfo.minZoom = 1;
11441144
baseLayerInfo.maxZoom = 19;

0 commit comments

Comments
 (0)