Selaa lähdekoodia

change the amap imagery style params

tags/2.0.0
Caven Chen 4 vuotta sitten
vanhempi
commit
66fa60e18f
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      modules/imagery/provider/AmapImageryProvider.js

+ 3
- 3
modules/imagery/provider/AmapImageryProvider.js Näytä tiedosto

@@ -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…
Peruuta
Tallenna