1.禁用infobox,自己设计信息面板。
2.设置沙箱的权限
var iframe = document.getElementsByClassName(‘cesium-infoBox-iframe’)[0];
iframe.setAttribute(‘sandbox’, ‘allow-same-origin allow-scripts allow-popups allow-forms’);
一定记住设置src属性为空
iframe.setAttribute(“src”, “”);
1.禁用infobox,自己设计信息面板。
2.设置沙箱的权限
var iframe = document.getElementsByClassName(‘cesium-infoBox-iframe’)[0];
iframe.setAttribute(‘sandbox’, ‘allow-same-origin allow-scripts allow-popups allow-forms’);
一定记住设置src属性为空
iframe.setAttribute(“src”, “”);