Procházet zdrojové kódy

fix the htmlLayer set show bug

tags/2.1.0
Caven Chen před 4 roky
rodič
revize
7f10ba8619
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      modules/layer/type/HtmlLayer.js

+ 2
- 1
modules/layer/type/HtmlLayer.js Zobrazit soubor

@@ -2,6 +2,7 @@
* @Author: Caven
* @Date: 2020-02-12 21:43:33
*/

import { Cesium } from '@dc-modules/namespace'
import State from '@dc-modules/state/State'
import { DomUtil } from '@dc-modules/utils'
@@ -21,7 +22,7 @@ class HtmlLayer extends Layer {
set show(show) {
this._show = show
this._delegate.style.visibility = this._show ? 'visible' : 'hidden'
this._cache.keys().forEach(key => {
Object.keys(this._cache).forEach(key => {
this._cache[key].show = show
})
return this

Načítá se…
Zrušit
Uložit