File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Attributions from '../core/Attributions'
1111 * @category ThirdPartyMap
1212 * @modulecategory Mapping
1313 * @extends {L.TileLayer }
14- * @param {string } [url='https://online{num} .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20150815&scaler=1'] - 切片地址。
14+ * @param {string } [url='https://online3 .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20150815&scaler=1'] - 切片地址。
1515 * @param {Object } options - 参数。
1616 * @param {number } [options.minZoom=3] - 最小缩放级别。
1717 * @param {number } [options.maxZoom=19] - 最大缩放级别。
@@ -27,7 +27,7 @@ export var BaiduTileLayer = L.TileLayer.extend({
2727 * @member {string} BaiduTileLayer.prototype.url
2828 * @description 切片地址。
2929 */
30- url : "http ://online{num} .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20150815&scaler=1" ,
30+ url : "https ://online3 .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20150815&scaler=1" ,
3131
3232 options : {
3333 minZoom : 3 ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { Util } from '../core/Util';
1313 * @classdesc 百度地图图层源。
1414 * @modulecategory Mapping
1515 * @param {Object } opt_options - 参数。
16- * @param {string } [opt_options.url='http ://online1 .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20170408'] - 服务地址。
16+ * @param {string } [opt_options.url='https ://online3 .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20170408'] - 服务地址。
1717 * @param {string } [opt_options.tileProxy] - 代理地址。
1818 * @param {boolean } [hidpi = false] - 是否使用高分辨率地图。
1919 * @extends {ol.source.TileImage }
@@ -31,7 +31,7 @@ export class BaiduMap extends TileImage {
3131 var url =
3232 options . url !== undefined
3333 ? options . url
34- : 'http ://online1 .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20170408' ;
34+ : 'https ://online3 .map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20170408' ;
3535 var hidpi =
3636 options . hidpi || ( window . devicePixelRatio || window . screen . deviceXDPI / window . screen . logicalXDPI ) > 1 ;
3737 url = url . replace ( '{styles}' , hidpi ? 'ph' : 'pl' ) ;
You can’t perform that action at this time.
0 commit comments