Skip to content

Commit 6281f39

Browse files
committed
【update】supermapcloud->dituhui review by xiongjj yuzhiyao
1 parent acbaebf commit 6281f39

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

examples/component/components_ncp_world_vue.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@
131131
['has', 'confirmed'],
132132
[
133133
'case',
134+
['>=', ['get', 'confirmed'], 1000000],
135+
'#580000',
136+
['>=', ['get', 'confirmed'], 100000],
137+
'#900000',
134138
['>=', ['get', 'confirmed'], 10000],
135139
'#ef6548',
136140
['>=', ['get', 'confirmed'], 1000],

examples/leaflet/cloudLayer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
crs: L.CRS.EPSG3857,
1818
zoom: 3
1919
});
20-
L.supermap.cloudTileLayer("http://t2.supermapcloud.com/FileService/image").addTo(map);
20+
L.supermap.cloudTileLayer("http://t2.dituhui.com/FileService/image").addTo(map);
2121
</script>
2222
</body>
2323
</html>

src/leaflet/mapping/CloudTileLayer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Attributions from '../core/Attributions'
1010
* @classdesc 超图云服务图层。
1111
* @category ThirdPartyMap
1212
* @extends {L.TileLayer}
13-
* @param {string} [url='http://t2.supermapcloud.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}'] - 服务地址。
13+
* @param {string} [url='http://t2.dituhui.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}'] - 服务地址。
1414
* @param {Object} options - 图层可选参数。
1515
* @param {string} [options.type='web'] - type。
1616
* @param {number} [options.minZoom=3] - 最小缩放级别。
@@ -20,7 +20,7 @@ import Attributions from '../core/Attributions'
2020
*/
2121
export var CloudTileLayer = L.TileLayer.extend({
2222

23-
defaultURL: 'http://t2.supermapcloud.com/FileService/image',
23+
defaultURL: 'http://t2.dituhui.com/FileService/image',
2424

2525
options: {
2626
/**

src/mapboxgl/mapping/WebMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ export class WebMap extends mapboxgl.Evented {
301301
layerType = layerType.substr(0, 12);
302302
}
303303
let mapUrls = {
304-
CLOUD: 'http://t2.supermapcloud.com/FileService/image?map=quanguo&type=web&x={x}&y={y}&z={z}',
305-
CLOUD_BLACK: 'http://t3.supermapcloud.com/MapService/getGdp?x={x}&y={y}&z={z}',
304+
CLOUD: 'http://t2.dituhui.com/FileService/image?map=quanguo&type=web&x={x}&y={y}&z={z}',
305+
CLOUD_BLACK: 'http://t3.dituhui.com/MapService/getGdp?x={x}&y={y}&z={z}',
306306
OSM: 'http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png',
307307
GOOGLE:
308308
'https://www.google.cn/maps/vt/pb=!1m4!1m3!1i{z}!2i{x}!3i{y}!2m3!1e0!2sm!3i380072576!3m8!2szh-CN!3scn!5e1105!12m4!1e68!2m2!1sset!2sRoadmap!4e0!5m1!1e0',

src/openlayers/mapping/SuperMapCloud.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import XYZ from 'ol/source/XYZ';
99
* @category ThirdPartyMap
1010
* @classdesc 超图云地图图层源。
1111
* @param {Object} opt_options - 参数。
12-
* @param {string} [opt_options.url='http://t2.supermapcloud.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}'] - 服务地址。
12+
* @param {string} [opt_options.url='http://t2.dituhui.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}'] - 服务地址。
1313
* @param {string} [opt_options.tileProxy] - 代理地址。
1414
* @extends {ol/source/XYZ}
1515
*/
@@ -21,7 +21,7 @@ export class SuperMapCloud extends XYZ {
2121
var attributions = options.attributions || "Map Data ©2014 SuperMap - GS(2014)6070号-data©Navinfo with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a></span>"
2222
var mapName = options.mapName || 'quanguo';
2323
var mapType = options.mapType || 'web';
24-
var url = options.url || 'http://t2.supermapcloud.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}';
24+
var url = options.url || 'http://t2.dituhui.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}';
2525
url = url.replace('{mapName}', mapName).replace('{type}', mapType);
2626

2727
var superOptions = {

src/openlayers/mapping/WebMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,15 +832,15 @@ export class WebMap extends Observable {
832832
// thumbnail: this.getImagePath('bmap.png') 暂时不用到缩略图
833833
break;
834834
case ('CLOUD'):
835-
baseLayerInfo.url= 'http://t2.supermapcloud.com/FileService/image?map=quanguo&type=web&x={x}&y={y}&z={z}';
835+
baseLayerInfo.url= 'http://t2.dituhui.com/FileService/image?map=quanguo&type=web&x={x}&y={y}&z={z}';
836836
baseLayerInfo.epsgCode= 'EPSG:3857';
837837
baseLayerInfo.minZoom= 1;
838838
baseLayerInfo.maxZoom= 18;
839839
baseLayerInfo.level= 1;
840840
baseLayerInfo.extent= baiduBounds;
841841
break;
842842
case ('CLOUD_BLACK'):
843-
baseLayerInfo.url= 'http://t3.supermapcloud.com/MapService/getGdp?x={x}&y={y}&z={z}';
843+
baseLayerInfo.url= 'http://t3.dituhui.com/MapService/getGdp?x={x}&y={y}&z={z}';
844844
baseLayerInfo.epsgCode= 'EPSG:3857';
845845
baseLayerInfo.minZoom= 1;
846846
baseLayerInfo.maxZoom= 18;

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