@@ -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 } ` ;
0 commit comments