Browse Source

add protocol params for imagery layer

tags/2.9.0
Caven Chen 3 years ago
parent
commit
e114bb7cd5

+ 1
- 2
modules/imagery/provider/AmapImageryProvider.js View File

@@ -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') {

+ 1
- 2
modules/imagery/provider/BaiduImageryProvider.js View File

@@ -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

+ 1
- 2
modules/imagery/provider/GoogleImageryProvider.js View File

@@ -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)

+ 0
- 1
modules/imagery/provider/TdtImageryProvider.js View File

@@ -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 || ''

+ 1
- 2
modules/imagery/provider/TencentImageryProvider.js View File

@@ -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
- 1
modules/overlay/primitive/GroundPolylinePrimitive.js View File

@@ -3,6 +3,8 @@
* @Date: 2021-12-01 20:31:02
*/

class GroundPolylinePrimitive {}
class GroundPolylinePrimitive {
constructor(postions) {}
}

export default GroundPolylinePrimitive

Loading…
Cancel
Save