MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / setVisibility

Method setVisibility

src/common/overlay/l7/L7LayerBase.js:78–84  ·  view source on GitHub ↗
(visibility)

Source from the content-addressed store, hash-verified

76 }
77
78 setVisibility(visibility) {
79 if (this.animateStatus) {
80 this.cancelAnimationFrame();
81 }
82 visibility ? this.l7layer.show() : this.l7layer.hide();
83 this.map.style.setLayoutProperty(this.id, 'visibility', visibility ? 'visible' : 'none');
84 }
85
86 addSceneLayer(scene) {
87 this.scene = scene;

Callers 2

setLayoutPropertyMethod · 0.95
setLayoutPropertyMethod · 0.45

Calls 4

cancelAnimationFrameMethod · 0.95
showMethod · 0.45
hideMethod · 0.45
setLayoutPropertyMethod · 0.45

Tested by

no test coverage detected