Solved! Go to Solution.
if (layerCreationProperties.autoRefresh > 0) { setInterval(dynLayer.refresh, layerCreationProperties.autoRefresh * 1000); } if (layerCreationProperties.autoRefresh > 0) { setInterval(dynLayer.refresh, layerCreationProperties.autoRefresh * 1000); }