viewerPerformanceWatchdogMixin

viewerPerformanceWatchdogMixin(viewer)

混合函数,用于将 PerformanceWatchdog 部件添加到 Viewer 部件中。 如下例所示,该函数通常不会被直接调用,而是作为参数传递给Viewer#extend
Name Type Default Description
viewer Viewer 查看器实例。
options.lowFrameRateMessage String 'This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers.' optional HTML 形式显示,因此请确保其来源可信,这样您的应用程序就不会受到跨站脚本攻击。
Throws:
Example:
var viewer = new SuperMap3D.Viewer('Container');
viewer.extend(SuperMap3D.viewerPerformanceWatchdogMixin, {
    lowFrameRateMessage : 'Why is this going so <em>slowly</em>?'
});