Sfoglia il codice sorgente

imporve HtmlLayer

tags/2.2.5
Caven Chen 4 anni fa
parent
commit
304591d335
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      modules/layer/type/HtmlLayer.js

+ 1
- 1
modules/layer/type/HtmlLayer.js Vedi File

@@ -51,7 +51,7 @@ class HtmlLayer extends Layer {
position
)
let distance = Cesium.Cartesian3.distance(position, cameraPosition)
item._updateStyle({ transform: windowCoord }, distance)
windowCoord && item._updateStyle({ transform: windowCoord }, distance)
}
}, this)
}, this)

Loading…
Annulla
Salva