Browse Source

change the amap imagery style params

tags/2.0.0
Caven Chen 4 years ago
parent
commit
66fa60e18f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      modules/imagery/provider/AmapImageryProvider.js

+ 3
- 3
modules/imagery/provider/AmapImageryProvider.js View File

@@ -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…
Cancel
Save