瀏覽代碼

change the amap imagery style params

tags/2.0.0
Caven Chen 4 年之前
父節點
當前提交
66fa60e18f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      modules/imagery/provider/AmapImageryProvider.js

+ 3
- 3
modules/imagery/provider/AmapImageryProvider.js 查看文件

@@ -13,7 +13,7 @@ const IMG_URL =
const ELEC_URL =
'http://webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'

const LOAD_MARK_URL =
const CVA_URL =
'https://webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'

class AmapImageryProvider extends Cesium.UrlTemplateImageryProvider {
@@ -21,8 +21,8 @@ class AmapImageryProvider extends Cesium.UrlTemplateImageryProvider {
options['url'] =
options.style === 'img'
? IMG_URL
: options.style === 'load'
? LOAD_MARK_URL
: options.style === 'cva'
? CVA_URL
: ELEC_URL
options['subdomains'] = options.subdomains || ['01', '02', '03', '04']
if (options.crs === 'WGS84') {

Loading…
取消
儲存