| @@ -21,8 +21,7 @@ class AmapImageryProvider extends Cesium.UrlTemplateImageryProvider { | |||
| options.url || | |||
| [ | |||
| options.protocol || '', | |||
| options.protocol ? ':' : '', | |||
| TILE_URL[options.style || 'elec'] | |||
| TILE_URL[options.style] || TILE_URL['elec'] | |||
| ].join('') | |||
| options['subdomains'] = options.subdomains || ['01', '02', '03', '04'] | |||
| if (options.crs === 'WGS84') { | |||
| @@ -24,8 +24,7 @@ class BaiduImageryProvider { | |||
| options.url || | |||
| [ | |||
| options.protocol || '', | |||
| options.protocol ? ':' : '', | |||
| TILE_URL[options.style || 'custom'] | |||
| TILE_URL[options.style] || TILE_URL['custom'] | |||
| ].join('') | |||
| this._labelStyle = options.labelStyle || 'web2D' | |||
| this._tileWidth = 256 | |||
| @@ -20,8 +20,7 @@ class GoogleImageryProvider extends Cesium.UrlTemplateImageryProvider { | |||
| options.url || | |||
| [ | |||
| options.protocol || '', | |||
| options.protocol ? ':' : '', | |||
| TILE_URL[options.style || 'elec'] | |||
| TILE_URL[options.style] || TILE_URL['elec'] | |||
| ].join('') | |||
| options['subdomains'] = options.subdomains || ['1', '2', '3'] | |||
| super(options) | |||
| @@ -14,7 +14,6 @@ class TdtImageryProvider extends Cesium.UrlTemplateImageryProvider { | |||
| super({ | |||
| url: [ | |||
| options.protocol || '', | |||
| options.protocol ? ':' : '', | |||
| MAP_URL.replace(/\{style\}/g, options.style || 'vec').replace( | |||
| /\{key\}/g, | |||
| options.key || '' | |||
| @@ -19,8 +19,7 @@ class TencentImageryProvider extends Cesium.UrlTemplateImageryProvider { | |||
| options.url || | |||
| [ | |||
| options.protocol || '', | |||
| options.protocol ? ':' : '', | |||
| TILE_URL[options.style || 'elec'] | |||
| TILE_URL[options.style] || TILE_URL['elec'] | |||
| ].join('') | |||
| options['url'] = url.replace('{style}', options.style || 1) | |||
| options['subdomains'] = options.subdomains || ['1', '2', '3'] | |||
| @@ -3,6 +3,8 @@ | |||
| * @Date: 2021-12-01 20:31:02 | |||
| */ | |||
| class GroundPolylinePrimitive {} | |||
| class GroundPolylinePrimitive { | |||
| constructor(postions) {} | |||
| } | |||
| export default GroundPolylinePrimitive | |||